MCQ Single Best Answer Not Set

QWhat 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))

ID: #3897 Python Basic MCQ 286 views
Question Info
#3897Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're 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: Option D

Explanation

He ran for 7 minutes for 6 days

Share This Question

Challenge a friend or share with your study group.