Solved

What Should the Question Mark (?) in the Following for Statement

Question 4

Multiple Choice

What should the question mark (?) in the following for statement be replaced with, so that the statements will calculate 5!? In [1]: factorial = 1
In [2]: for number in range(5, 0, ?) :
) ..: factorial *= number
) ..:
In [3]: factorial
Out[3]: 120


A) 1
B) 0
C) -1
D) None of the above.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents