Ask coding questions

← Back to all posts
How to do IF statements?
madmonster

I learnt python from a book which is outdated. It was a book published in 2013 and its IF statements that don't work.

Voters
EstebanCerda
GavinAhluwalia
Cyberchsn
HenryLadd
cborder1200
ZoeDown80
mackywacky
MarianneHarris
Gunmaster
EmilyCarpenter1
Comments
hotnewtop
abc3354

I don't think that the if statements changes between python version however :

You may find a beginner course if you course is outdated, you can find online courses.
Maybe someone else knows a good course ?


Replit helper here !
If you found my answer helpful, you can upvote :)

AllAwesome497

Here is pythons tutorial: https://docs.python.org/3/tutorial/

madmonster

@AllAwesome497 Thank you!!!!!

AllAwesome497

@madmonster any time

UNDeF1ND

if (boolean):
and then the if statement will indent. backspace to stop it.

EDJ102

Python is always updating, so that is why your if\else commands are not working.

18staleyn

I would also suggest trying code academy. You may have to slug through stuff you already know how to do, but it may give you refreshers or teach you a few things you didnt realize you could do or things you forgot how to do, as well as teaching you new things.