Question: Python You are provided with a number input which will be either 1 or 0 if the number is 1 output On if 0 output

Python
You are provided with a number input which will be either 1 or 0
if the number is 1 output On if 0 output Off
Import says
N=int(sys.argv[1])
I keep gettting Off input should be On
 Python You are provided with a number input which will be

1 # Get our number from the command line import sys N = int(sys.argv[1]) # Your code goes here print('On') else: print ('Off) 9% (1:0)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!