0

what is if condition

13th Nov 2016, 7:00 PM
Arun karthick
Arun karthick - avatar
3 Answers
+ 4
An if statement is just a very basic way to have a computer make a decision. So... if age >= 18: print("You are an adult.") If age is greater than or equal to eighteen, then it will print "You are an adult.". Otherwise, it won't do anything; unless, of course, you have an else after it.
13th Nov 2016, 7:13 PM
Keto Z
Keto Z - avatar
+ 2
'condition' is the expression being tested. In binary logic (1 or 0) conditions evaluate as condition is True, or condition is False.
13th Nov 2016, 7:30 PM
Kirk Schafer
Kirk Schafer - avatar
0
thank u friends
13th Nov 2016, 7:33 PM
Arun karthick
Arun karthick - avatar