133k views
0 votes
PLEASE HURRY!!!

What is the output of the following program? Assume numA is 4, numB is 2, and numC is 6.

if numA < numB and numB < numC:
print(numA)
elif numB < numA and numB < numC:
print(numB)
else:
print(numC)

A) 2.0
B) numA
C) 4.0
D) numB

User Dveim
by
4.8k points

2 Answers

2 votes

Answer:

A)2.0

Step-by-step explanation:

You are probably inputting this into the wrong section of python. Most beginners of python(Including me) start out by going into a new untitled blank coding slate. This type of code isn't meant to go into the coding slate. This is meant to go into the python shell. Therefore if you put this into the coding slate, you won't get back a result at all because half of your functions are rendered useless.

User Simion Agavriloaei
by
4.5k points
1 vote

Answer: 2.0

Explanation: I did this on ed genuity , I’m terrible at this so I don’t really have an explanation

User Bansi
by
4.0k points