Answers for "if statemnt python"

0

if statement python

number = 5
if number == 5:
  print("number equals 5")
else:
  print("number does not equal 5")
Posted by: Guest on December-14-2020
0

if statement in python

user_info = input("How may I help you?: ")
if user_info == "on":
    print("Light is Turned Om")
elif user_info == "off":
    print("Light is turned Off")
elif user_info == "status":
    input("All are Good.What do you need?: ")
    print("I don't have it")
else:
    print("Shutdown processing are being Ready")
   #copy the code to your py script to have the results!!!
Posted by: Guest on February-24-2022

Python Answers by Framework

Browse Popular Code Answers by Language