what is if condition | SoloLearn: Learn to code for FREE!

0

what is if condition

11/13/2016 7:00:11 PM

Arun karthick

3 Answers

New Answer

+3

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.

+2

'condition' is the expression being tested. In binary logic (1 or 0) conditions evaluate as condition is True, or condition is False.

0

thank u friends