No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
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 … | |
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, … | |
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 … | |
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] … | |
[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 … | |
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 … ![]() |
The End.