Re: [Tutor] Help with "Guess the number" script

2014-03-02 Thread Dave Angel
Scott W Dunning Wrote in message: > > On Mar 1, 2014, at 12:47 AM, Ben Finney wrote: > >> You've bound the name ‘current_guess’ to the user's input, but then do >> nothing with it for the rest of the function; it will be discarded >> without being used. > Hmm, I’m not quite sure I unders

[Tutor] (no subject)

2014-03-02 Thread Emeraude kwilu
Read in a list of English words. Randomly select a long word and show it to the contestant. Challenge the contestant to find shorter words using letters from the long word. They should type each one and press Enter. After 30seconds,the game stops accepting entries. It evaluates the user’s submis

Re: [Tutor] (no subject)

2014-03-02 Thread Alan Gauld
On 02/03/14 18:14, Emeraude kwilu wrote: selectWord = [ "abjuring",] #this is the random word selected validWordList = ['bar','bug'...] Obviously this is not your real code since this is not valid syntax. And since its clearly homework it will help us if you post your actual code that is faili

Re: [Tutor] (no subject)

2014-03-02 Thread R. Alan Monroe
> I am stuck there my loop is not working > ... > I know I have to use if and > else statement but I'm not able to do so :( Hint: Set the assignment aside and write a couple smaller practice programs. Like a very simple one that just asks for a word and prints that word. Or a simple one that che

[Tutor] What is the unladen airspeed velocity of a swallow in flight?

2014-03-02 Thread Mark Lawrence
On 02/03/2014 18:14, Emeraude kwilu wrote: [snipped as it's been answered] Or to put it another way, please use a sensible subject line, there may be some intelligent people on this list, but we're not mind readers :) -- My fellow Pythonistas, ask not what our language can do for you, ask wh

[Tutor] Equality Check.

2014-03-02 Thread Tyler Simko
Hi all! I'm embarrassingly new at Python, so please forgive my probably simple mistakes. So I called readlines() on a file, and I'm wondering how I can check the equality of a specific line with a raw_input set variable as a condition. For example, file = open('filename.txt,' 'r') file.read

Re: [Tutor] Equality Check.

2014-03-02 Thread Mark Lawrence
On 02/03/2014 21:10, Tyler Simko wrote: Hi all! I'm embarrassingly new at Python, so please forgive my probably simple mistakes. So I called readlines() on a file, and I'm wondering how I can check the equality of a specific line with a raw_input set variable as a condition. For example, fil

Re: [Tutor] Equality Check.

2014-03-02 Thread Joel Goldstick
On Mar 2, 2014 6:30 PM, "Mark Lawrence" wrote: > > On 02/03/2014 21:10, Tyler Simko wrote: >> >> Hi all! >> >> I'm embarrassingly new at Python, so please forgive my probably simple mistakes. >> >> So I called readlines() on a file, and I'm wondering how I can check the equality of a specific line

Re: [Tutor] Equality Check.

2014-03-02 Thread Danny Yoo
The call to readlines () has a return value that is currently being dropped to the floor. Look at its value. Feel free to ask more questions. Good luck! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail

Re: [Tutor] Equality Check.

2014-03-02 Thread Alan Gauld
On 02/03/14 21:10, Tyler Simko wrote: So I called readlines() on a file, and I'm wondering how > I can check the equality of a specific line with a raw_input file = open('filename.txt,' 'r') file.readlines() This opens the file and reads all the lines but it doesn't store the result anywher

Re: [Tutor] Equality Check.

2014-03-02 Thread Mark Lawrence
On 02/03/2014 23:38, Danny Yoo wrote: The call to readlines () has a return value that is currently being dropped to the floor. Look at its value. Feel free to ask more questions. Good luck! He'll need it after reading my response, I must stop replying when I'm knackered and not thinking s

Re: [Tutor] Equality Check.

2014-03-02 Thread Ben Finney
Tyler Simko writes: > I'm embarrassingly new at Python, so please forgive my probably simple > mistakes. Welcome, and congratulations on starting with Python! No forgiveness needed for asking questions or making mistakes; the important thing is to learn from both. > So I called readlines() on