if statements in python 3 part-7

Опубликовано: 05 Январь 2018
на канале: Cook The Code
3
0

What are if...else statement in Python?
Decision making is required when we want to execute a code only if a certain condition is satisfied.

example:-
If the number is positive, we print an appropriate message

num = 3
if num greater then 0:
print(num, "is a positive number.")
print("This is always printed.")

num = -1
if num greater then 0:
print(num, "is a positive number.")
print("This is also always printed.")

website:-https://coderworld109.blogspot.com/


Смотрите видео if statements in python 3 part-7 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Cook The Code 05 Январь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3 раз и оно понравилось 0 людям.