Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Python Day 7: వంశీ భవాని

Link to full playlist in Telugu:


https://youtube.com/playlist?list=PLNgoFk5SYUglQOaXSY8lAlPXmK6tQBHaw

Note: Please watch the video before reading the notes, because
you will understand the concepts clearly when they are
explained with examples in a native language.

i
Conditionals

an
1) These are used when you need to do something depending on whether
or not a condition is satisfied.

av
2) We use if, elif, else keywords are used to implement the conditionals in
python.
Bh
3) Syntax:
if condition1:
statements-to-execute when condition1 is satisfied
elif condition2:
si

statements-to-execute when condition1 is not satisfied & condition2 is satisfied

else:
m

statements-to-execute when none of the conditions are satisfied


4) After every : we are giving space, this is called indentation. Indentation
Va

is used to make sure that all required statements that are to be


executed when condition is satisfied are grouped.
5) Note: Irrespective of the condition being satisfied or not, the code
outside the indentation will always be executed.

Please check out the video of Day 7 to get a clear idea on the topic
with examples.
Instagram: https://www.instagram.com/vamsi_bhavani
Telegram for Jobs/Internships: https://t.me/VamsiBhavaniChannel

Thanks & Regards

Vamsi Bhavani

i
an
av
Bh
si
m
Va

You might also like