Answers for "how to create if statements in python"

0

if statement python

can_do = True
can_do1 = True

if can_do:
    print("we can do it")
elif can_do1:
    print("we can do it but the second time")    
else:
    print("we cant do it")
#result should be (we can do it.)
Posted by: Guest on February-07-2022
0

if statement python

number = 5
if number == 5:
  print("number equals 5")
else:
  print("number does not equal 5")
Posted by: Guest on December-14-2020
0

if statements python

water = input('Does your creature live underwater?')
if water == 'yes':
	print('Your creature lives underwater')
else:
	print('Your creature does not live underwater')
Posted by: Guest on October-17-2020

Code answers related to "how to create if statements in python"

Python Answers by Framework

Browse Popular Code Answers by Language