MCQs > IT & Programming > Python > Find the output of Python code and choose the correct answer from the given options. m = 7 tor = 1 if m < 0: print('0') elif m == 0: print('1') else: for i in range(1,m + 1): tor = tor*i print(tor)

Python MCQs

Find the output of the following Python code and choose the correct answer from the given options.

m = 7

tor = 1

if m < 0:

   print("0")

elif m == 0:

   print("1")

else:

for i in range(1,m + 1):

    tor = tor*i

print(tor)


Answer

Correct Answer:

5040 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it