Answers for "if statement with and in python"

0

if statement python

temperature = float(input('What is the temperature? '))
    if temperature > 70:
        print('Wear shorts.')
    else:
        print('Wear long pants.')
    print('Get some exercise outside.')
Posted by: Guest on October-11-2021
0

if statement in python

can_run = True
can_run2 = False

if can_run:
    print("i can run the code because can_run is true")
    
elif can_run2:
    print("i can run the code if can_run2 is true")
    
else:
    print("no other bool found true")
    

#result should be (i can run the code because can_run is true
Posted by: Guest on February-08-2022

Code answers related to "if statement with and in python"

Python Answers by Framework

Browse Popular Code Answers by Language