Answers for "if % 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

Python Answers by Framework

Browse Popular Code Answers by Language