Basic IF statement in Python

Published: 29 May 2022
on channel: Computer Science with DM
5
0

An IF statement is used for decision making. It is vital to use the correct syntax, otherwise it will not work. An IF statement starts with an if in lower case. The colon : means 'then'. For example, if the condition is true THEN print 'success!'
After the colon, there should be an indentation (space at the front) on the next line, for example when writing the print statement.


On this page of the site you can watch the video online Basic IF statement in Python with a duration of hours minute second in good quality, which was uploaded by the user Computer Science with DM 29 May 2022, share the link with friends and acquaintances, this video has already been watched 5 times on youtube and it was liked by 0 viewers. Enjoy your viewing!