Answer:
# -*- coding: utf-8 -*-
# Get N from the command line
import sys
N = int(sys.argv[1])
if N > 0: #N is positive
positve = list(range(N,0,-1))
print(positve)
elif N < 0: #N is negative
negative = list(range(N,0,1))
print(negative)
else:
print("Invalid in input")
Explanation:
First, you need to identify if the number entered is positive, negative or none of them, for that we use one if, one elif and one else statement:
- If the number entered (N) is greater than zero (is positive) we print a list in the range N to 0 in steps of minus one, the zero is not printed because the function range by default omits the last value
- If the previous statement was False and the number entered is smaller than zero (is negative) we print a list in the range N to 0 in steps of one, the zero is not printed because the function range by default omits the last value
- Finally, if the two previous events were false print invalid input
- The conversion of 47,000 Ohms to kilo-ohms is equal to 47 kilo-ohms.
- The conversion of 47,000 Ohms to mega-ohms is equal to 0.047 kilo-ohms.
<h3>What is
resistance?</h3>
Resistance can be defined as an opposition to the flow of current in an electric circuit. Also, the standard unit of measurement of the resistance of an electric component is Ohms, which can be converted to kilo-ohms or mega-ohms.
For Ohms to kilo-ohms, we have:
1 Ohms = 0.001 kilo-ohms
47,000 Ohms = X kilo-ohms
Cross-multiplying, we have:
X = 0.001 × 47000
X = 47 kilo-ohms.
For Ohms to mega-ohms, we have:
1,000,000 ohms = 1 mega-ohms
47,000 Ohms = X mega-ohms
Cross-multiplying, we have:
X1,000,000 = 47,000
X = 47,000/1,000,000
X = 0.047 kilo-ohms.
Read more resistance here: brainly.com/question/19582164
#SPJ1
Answer:
oof
Explanation:
I don't know but please don't report me
I am trying to do a challenge
Thank you-
If you don't report me!
Answer:
Please see the attached file for complete answer.
Explanation:
Answer:
The answer is computer cookies.
Explanation:
Smartness :D