Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- power = input("Is there electric power? on/off? ")
- internet = input("Is the internet modem connected? on/off? ")
- computer = input("Is the computer connected on/off? ")
- if (power == "on") and (internet == "on") and (computer == "on"):
- print ("You can surf the Internet" )
- elif (power == "off") and (internet == "on") and (computer == "on"):
- print ("You need turn on the electric power")
- elif (power == "on") and (internet == "off") and (computer == "on"):
- print ("You need turn on the internet modem")
- elif (power == "on") and (internet == "on") and (computer == "off"):
- print ("You need turn on the computer" )
- elif (power == "off") or (internet == "off") or (computer == "off"):
- print ("Please verify, you need turn on electric power, internet modem and the computer")
- else:
- print("Please run again and type the correct options on/off")
Advertisement
Add Comment
Please, Sign In to add comment