Answers for "what can we use instead of if else in python"

2

if else python

# IF ELSE ELIF
age=int(input("Enter your age:"))
if age<=18:
  print("sorry your are not eligible for vote")
elif age>=18:
  print("u are eligible for vote")
else:
  print("in some how the previou's condition fails else part will run")
Posted by: Guest on January-01-2021

Code answers related to "what can we use instead of if else in python"

Python Answers by Framework

Browse Popular Code Answers by Language