0
what is if condition
3 odpowiedzi
+ 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.
+ 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