MCQ Practice Single Best Answer Topic: Python Basic MCQ

Q What will be the output after the following statements?
x = 7
y = 6
z = 'He ran for %s minutes for %s days'
print(z % (x, y))

Question ID
#3897
Subchapter
Python Basic MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A He ran for 7 minutes for 7 days
  • B He ran for 6 minutes for 6 days
  • C He ran for 6 minutes for 7 days
  • D He ran for 7 minutes for 6 days
Correct Answer: D

Explanation

He ran for 7 minutes for 6 days

Share This Question

Share this MCQ with your friends or study group.