Machine Learning Tutorial Python : 10. Python Control Statement (if and if else)

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 and if else statment)

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

1 Python Indentation
2 Python Control Statement
3 if statement
4 Sample program 1
5 Sample program 2
6 if else statement
7 Sample program 1
8 Sample program 2

*****************************************
Python Indentation

In Python , the code block can be defined using indentation.
Indentation Syntax : Tab or four(4) whitespaces

Python Control Statements

It is used in Python for decision making.It is required when we want to execute a code only if a certain condition
is satisfied.

Python is having 4 types of control statement
1. if
2. if else
3. if elif else
4. nested if

1. if statement

- If the boolean expression evaluates to TRUE, then the block of statement(s) inside the if statement is
executed.
- If boolean expression evaluates to FALSE, then the first set of code after the end of the if statement(s) is
executed.
Note: Python interprets non-zero values as True. None and 0 are interpreted as False.

2. if ... else Statement

- The if..else statement evaluates test expression and will execute body of if only when test condition is True.
- If the condition is False,then body of else is executed

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

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

Agenda :
0:11 Python Indentation
1:12 Python Control Statement
1:44 if statement
2:16 Sample program 1
3:19 Sample program 2
4:00 if else statement
4:18 Sample program 1
4:53 Sample program 2

vinothqaacademy
welcome to shbcf.ru