Help with while loop - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Help with while loop (/thread-16999.html) |
Help with while loop - ShadowAlpha - Mar-24-2019 I'm new to python working on a Raspberry pi. I'm trying to make a number guessing game based on user input. Code: num = int(raw_input("Pick a number: ")) While num != 4 : int(raw_input("Incorrect, pick again :)) #indented else : print("Good job") #indented exit #indentedError:
RE: Help with while loop - buran - Mar-24-2019 python is case-sensitive While is not the same as while
|