python code

Michael Havens bmike1 at gmail.com
Mon Apr 13 11:01:52 MST 2015


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~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150413/57568115/attachment.html>


More information about the PLUG-discuss mailing list