Answers for "how does the if then statement work in python"

3

if and else in python

# if and else uses in statement.
a=45
b=30
c=75
if a<b:
    print('45 is greater than 30')
else:
    print('c is sum of a and b')
output:
c is sum of a and b
Posted by: Guest on November-26-2021

Code answers related to "how does the if then statement work in python"

Python Answers by Framework

Browse Popular Code Answers by Language