Answers for "how to write if else statement in python"

3

how to use if else in python

print("Welcome to Rolercoster rider")
print()
#taking input of your hight
Your_hight = int(input("What is Your hight:- "))
#if condition 
if Your_hight >= 120:
    print("You are good to go to the roller coster")
else:
    print("Grow taller to go to the rolercoster")
Posted by: Guest on July-31-2021
2

if else python

#if else conditions in python
a = "if else conditions are inportant"
if "else" in a:
  print("Word is in a")
else:
  print("word is not in a")
Posted by: Guest on June-21-2021
1

if else python

if condition:
   result
elif condition:
   result
else:
   result
Posted by: Guest on January-11-2021
0

Python If ... Else

a = 33
b = 33
if b > a:
  print("b is greater than a")
elif a == b:
  print("a and b are equal")
Posted by: Guest on February-01-2021
0

python if

def e(x):
	if x == "Sunny" and x == "sunny":
  		print('Remember your sunglasses!')
	elif x == "Rainy" and x == "rainy":
  		print('Do not forget your umbrella!')
	elif x == 'Thunderstorm' or x == 'thunderstorm' or x =='Stormy' or x == 'stormy':
      print('Stay Home!')
    
x = input('What is the weather?')
Posted by: Guest on October-02-2020

Code answers related to "how to write if else statement in python"

Python Answers by Framework

Browse Popular Code Answers by Language