Answers for "if else return 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
0

python return using if

return A+1 if A > B else A-1
Posted by: Guest on September-28-2021
0

python return using if

return A+1 if A > B else A-1
# don't use
Posted by: Guest on September-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language