Answers for "if else usage python"

0

if else usage python

if expression:
   statement(s)
else:
   statement(s)
Posted by: Guest on December-20-2020
0

conditional block python

a = 1
b = 2
if a < b:
  print("a is less than b") #This will run since 1 is less than 2
elif a > b:
  print("a is greater than b")
else:
  print("a is equal to b")
Posted by: Guest on March-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language