Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for axa121

Hi I've been trying to code a bst based upon this link below: [url]http://www.stanford.edu/~blp/avl/libavl.html/BST_operations.c.txt[/url] I've adopted a similar strategy, whilst making some modifications, however for me I'm having a problem in that every time I go to add a new node to the bst, the root is always null, and …

Member Avatar for axa121
0
189
Member Avatar for axa121

Hi, I've decided to make a hangman game. I made this in Python last year, however I'm a little bit stick in Java, since I'm quite new to as well as Swing. Anyway, the problem I'm having is that my while loop keeps terminating if I enter 1 incorrect letter, …

Member Avatar for axa121
0
220
Member Avatar for axa121

Hi, I'm processing a small text file which contains information about the Winter Olympics. However I don't know how to keep the list the same for each country whilst making a new list for a different country. So far I've read in the lines and I have put the data …

Member Avatar for axa121
0
87
Member Avatar for axa121

Hi I am trying to read data from a text file, line by line. However I am having problems with the output of the last line. The text file I have created is: position 50 10 line 50 0 line -50 0 line 0 -50 Here is my code: [code] …

Member Avatar for axa121
0
144
Member Avatar for axa121

[code] from string import * def removePunctuation(sentence): sentence = lower(sentence) new_sentence = "" for char in sentence: if char not in punctuation: new_sentence = new_sentence + char return new_sentence def wordFrequences(sentence): wordCounts = {} split_sentence = new_sentence.split() print split_sentence for entry in split_sentence: for word in entry: wordCounts[entry] = wordCounts.get …

Member Avatar for woooee
0
3K
Member Avatar for axa121

Hi, I am still very new to python and programming so could anyone help me on how to input lines from a user, one line at a time until they type "." on a separate line. I also wanted to count how many lines they entered. What I tried was …

Member Avatar for masterofpuppets
0
183