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

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 then else python

a = 200
b = 33
if b > a:
	print("b is greater than a")

elif a == b:
	print("a and b are equal")

else:
	print("a is greater than b")
Posted by: Guest on August-21-2020

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

Python Answers by Framework

Browse Popular Code Answers by Language