Re: remastered: How to code in python tutorials
Mmm...
Ah. First, remove the parentheses around your if statement. That is not required for this kind of statement right now (unless its a very long statement). Second, remove the colon after your print statement and put it after the else. Third, divide the statement into multiple lines, i.e.:
if number==1:
print('hello')
else:
print('good bye')
You also should not indent your else. This isn't a part of the if block and your code isn't inside another block.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector