If Statement in Python | Python Tutorial

Опубликовано: 30 Март 2021
на канале: Codenut
55
1

Assalamualaikum everyone.

In this video I have discussed about if statement in python. This video is part-1 of my if, else, elif statements videos. This video only includes details and execution of if statement. To learn about else and elif statements do watch part-2 and part-3 of this video.

If statement is a conditional statement. Using if statement we can run a code only when a certain condition is satisfied.

Lets have a look at the syntax of if statement in python.

if condition:
block_of_code

Here, after ‘if’ comes the condition. And the ‘block of code’ indicates the code which is going to be ran if the condition is satisfied. You have to use the intend at the starting of the second line which is below if condition.

To have a detailed and proper information about how to use if statement in python do watch the whole video.

Thank you so much for being with me. Your subscription encourage me to do more videos.

Till we code again.


На этой странице сайта вы можете посмотреть видео онлайн If Statement in Python | Python Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Codenut 30 Март 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 55 раз и оно понравилось 1 зрителям. Приятного просмотра!