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
  • ... AudioGames . net Forum — Developers room : SkyGuardian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : dardar via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Turkce_Rap via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Socheat via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : dardar via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : abdulla-dubais via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : abdulla-dubais via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : dardar via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : black_mana via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : black_mana via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Charles via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : dardar via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : dardar via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Charles via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Vulcan_Raven via Audiogames-reflector

Reply via email to