[Tutor] Stephen Mik-Almost Brand New to Python 3.4.0-"Guess My Number" program is syntactically correct but will not run as expected

Peter Otten __peter__ at web.de
Mon Apr 28 19:52:17 CEST 2014

Stephen Mik wrote:

> My program, Assignment4,does run partially. You can see the results of the
> Python Shell attached to this email. I also have included part of my code
> for your perusal.
> I must be doing something very wrong. The program is supposed to run a
> main loop ,for control of the program. The program DOES print out the
> prompts before the While Loop, but when it comes to a variable
> named"smv_guessNumber" the program DOES NOT prompt for the input for
> "smv_guessNumber" as it should. It is a mystery to me as to why the
> program will not get to the "smv_guessNumber=int(input("Think out a first
> guess:")". 

> smv_grandCounter=int(input("Enter a 1 to play or 0 to exit: ")) 
>  while(smv_grandCounter=="1"): 


>>> 1 == "1"

More information about the Tutor mailing list