Python Tutorial for Beginners 12 - Python IF...ELIF...ELSE Statements + nested IF statements

preview_player
Показать описание
In this Video I am going to show How to use Python IF...ELIF...ELSE Statements and nested IF statements in python. In python One conditional can also be nested within another.
The if statement evaluates a Boolean condition, and if it is True, performs the indented statements(or a block or code); but if the test is False, it does nothing. The if statement can have an optional else part which will be performed if the test result is False.
If you if condition expression contains logical operators then,
In (A and B), if A is false, then so is the expression, and there is no need to evaluate B
In (A or B), if A is true, then so is the expression, and there is no need to evaluate B

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

where can we get exercises for each of your video.. because i have started and watching all the videos but dont have examples to solve

Dhanashri
Автор

Can you help me please as I seem to be having an issue with this tutorial, I’ve entered the code exactly as shown however the only result I’m getting is: “The name entered is invalid” Thank you

jeffleigh
Автор

where can i practice what i have learned

chetanagrawal
Автор

It gives an error "Invalid syntax" at the colon (:) sign after "name == "Max":" when I enter the code exactly as it is in the video

ruhinehal