Python If Else Statement | Python If Else Elif Tutorial | Python Programming Tutorial | Simplilearn

preview_player
Показать описание

This Python tutorial will help you understand the concept of 'if and else statements in Python. It will take you through some of the important concepts of if and else statements in Python including how to use If statements, how to use if else statements, use of nested if and elif statements using simple Python programming. This tutorial will also train you in writing intermediate level programs using if and else in Python. Now, let us get started and understand these statements with a hands-on demo.

#pythontutorial #pythonifelsestatement #pythonprogrammingforbeginners #pythontraining #pythontutorialforbeginners #numpypythontutorial #pythonsimplilearn #simplilearn

➡️ About Post Graduate Program In AI And Machine Learning

This AI ML course is designed to enhance your career in AI and ML by demystifying concepts like machine learning, deep learning, NLP, computer vision, reinforcement learning, and more. You'll also have access to 4 live sessions, led by industry experts, covering the latest advancements in AI such as generative modeling, ChatGPT, OpenAI, and chatbots.

✅ Key Features

- Post Graduate Program certificate and Alumni Association membership
- Exclusive hackathons and Ask me Anything sessions by IBM
- 3 Capstones and 25+ Projects with industry data sets from Twitter, Uber, Mercedes Benz, and many more
- Master Classes delivered by Purdue faculty and IBM experts
- Simplilearn's JobAssist helps you get noticed by top hiring companies
- Gain access to 4 live online sessions on latest AI trends such as ChatGPT, generative AI, explainable AI, and more
- Learn about the applications of ChatGPT, OpenAI, Dall-E, Midjourney & other prominent tools

✅ Skills Covered

- ChatGPT
- Generative AI
- Explainable AI
- Generative Modeling
- Statistics
- Python
- Supervised Learning
- Unsupervised Learning
- NLP
- Neural Networks
- Computer Vision
- And Many More…

🔥🔥 Interested in Attending Live Classes? Call Us: IN - 18002127688 / US - +18445327688
Рекомендации по теме
Комментарии
Автор

Do you have any questions on this topic? Please share your feedback in the comment section below and we'll have our experts answer it for you. Thanks for watching the video. Cheers!

SimplilearnOfficial
Автор

I love u so much madam . thank you for u r good explanation . Can you please provide some more examples .
to practice ...

a=20
b= 30
if (a<b):
print("learning python in simplilearn is very easy to learn")
else:
print("learning python in simplilearn is very Hard to learn")

arunbabu
Автор

In this video you are using count variable and in if statement used count+=1 I don't understand this meaning pls clear me.. why we r using count

karthikeyankarthi
Автор

my this question is executing the answer :
#1)#Whatever I'm expecting the answer




num_1 = int(input('num_1'))
num_2 = int(input('num_2'))
num_3 = int(input('num_3'))

if num_1 > num_2:
print('num_1', 'is greater than', 'num_2')
elif num_2 > num_3 :
print('num_2', 'is greater than', 'num_3 and num_1')
elif num_3 > num_1:
print('num_3', 'is greater than', 'num_1 and num_2')

else:
print('num_1', 'num_2', 'num_3', 'all are equal')



#2)whatever I'm expecting the answer


But this input is not executing the answer:




input('city')
input('state')

if 'city' == 'Mumbai':
print('city', "is correct")
if 'state' == 'maharashtra':
print('state', "is correct")
else:
print('state', "you entered is wrong")
else:
print('city', "city is not correct")




['the answer is getting always in this👇
else:
print('city', "city is not correct")

rocky
Автор

Mam... If i have to print both divisible and also not divisible number.. What to do??

periyasamys
visit shbcf.ru