Machine Learning Tutorial Python : 11. Python Control Statement ( if..elif..else and nested if)

preview_player
Показать описание
#vision2020 #aiforeveryone #pythonnumpy :

"My Vision is to provide "AIFOREVERYONE", by creating free video courses for Artificial Intelligence ,
Machine Learning, Deep Learning and Data Science Aspirants!"

If you wish to support my #vision2020, kindly Like, Subscribe & Share this knowledge to your friends and colleagues.

Follow Me :

************************************************************
Playlist:

***********************************************************
Python for Beginners - This video explains about the Control Statement ( if..elif..else and nested if)

Note: Use HD view for clear text visible
*****************************************
Agenda :

1 if..elif..else Statement
2 Sample program 1
3 Sample program 2
4 Sample program 3
5 Nested if Statement
6 Sample program 1

***************************
if...elif...else Statement
***************************

- It allows us to check for multiple expressions.
- If the condition for if is False, it checks the condition of the next elif block and so on.
- If all the conditions are False, body of else is executed.

Note: The if block can have only one else block. But it can have multiple elif blocks.

**********************
Nested if Statements
**********************

- There may be a situation when you want to check for another condition after a condition resolves to true. In
such a situation, you can use the nested if construct.

- We can have a if...elif...else statement inside another if...elif...else statement. This is called nesting in
computer programming.

Note: Any number of these statements can be nested inside one another. Indentation is the only way to figure
out the level of nesting. This can get confusing, so must be avoided if we can

************************************************************
Kindly let me know your feedback for improvement purpose. Feel free to correct any mistakes in case !!

Happy Learning,
Vinoth Rathinam
Рекомендации по теме
Комментарии
Автор

Agenda :
0:15 if..elif..else Statement
1:20 Sample program 1
2:00 Sample program 2
2:53 Sample program 3
3:56 Nested if Statement
4:21 Sample program 1

vinothqaacademy
welcome to shbcf.ru