python code

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
+ (text/html)
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: Michael Havens
Päiväys:  
Vastaanottaja: PLUG
Aihe: python code
well, I'm just starting to learn to code in python. Why am I getting an
infinite loop?

print("Welcome.")
g = input("Guess the number: ")
guess = int(g)
while guess != 5:
    print("Guess again.")
print("Correct")
:-)~MIKE~(-:

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss