Single Choice Not Set

QWhat will be the output after the following statements?
b = 1
for a in range(1, 10):
 b += a - 1
print(b)

ID: #3772 Python Functions MCQ 292 views
Question Info
#3772Q ID
Not SetDifficulty
Python Functions MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 37
  • B 47
  • C 44
  • D 38
Correct Answer

Explanation

37

Share This Question

Challenge a friend or share with your study group.