I'm using python 3.3.3. on windows 7. The if...: statement works fine, but else: seems to give me a syntax error. Let me copy and paste here:
- Code: Select all
>>> if temp>60 and temp<80:
SyntaxError: invalid syntax
Why did this occur? I also tried putting a semi-colon (;) after print('nice temp'), but it didn't work. How can I correct this? Thanks!