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.')
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.')
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us