Answers for "how to make if then statements in python"

3

if condition python

#if statement
house_payment=1000
buyer_has_payment= True
if buyer_has_payment:
    down_payment= 10/100*house_payment
else:
    down_payment= 20/100*house_payment
print('down payment',down_payment)
-------------------------------------------------------------------------------
Posted by: Guest on December-03-2021
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 to make if then statements in python"

Python Answers by Framework

Browse Popular Code Answers by Language