This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: if/else stament bug?
Type: behavior Stage: resolved
Components: IDLE, Windows Versions: Python 3.1
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: chrits55, r.david.murray
Priority: normal Keywords:

Created on 2010-06-01 20:12 by chrits55, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
hash.py chrits55, 2010-06-01 20:12 new mini-game
Messages (2)
msg106857 - (view) Author: Chris (chrits55) Date: 2010-06-01 20:12
i am trying to learn to program in Python from a book on programming that says to use Python 3 

i downloaded the Python 3.1.2 Windows x86 MSI installer for my machine aka an HP DV2500 running Win 7

it runs fine, but when i try to write the test program from my book i can't get past the if/else statement aka it gives me a syntax error when i get to the point of an if/else statement aka i program to ask the user to guess the number .. and then i try to create an if/else statement to print a you lose type statement if the input guess is not equal to the number specified by the program. for example i program the game to = 777 and print the you lose type message if the user's guess is not equal to 777, however i use the check module command from the run window in IDLE and it gave me a syntax error when i typed it the way the book said ... I've tried to figure this out myself but have had no success .. so i looked up if statements in the Python tutorials on python.org and tried that format and am still getting a syntax error
msg106858 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-06-01 20:25
The bug tracker is not the place to get help on learning python.  Please try python-list or python-help (see mail.python.org).
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53118
2010-06-01 20:25:44r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg106858

resolution: not a bug
stage: resolved
2010-06-01 20:12:17chrits55create