MCQs > IT & Programming > Python > How can the whole numbers from 1 to 10 be totaled?

Python MCQs

How can the whole numbers from 1 to 10 be totaled?

Answer

Correct Answer: sum(i for i in xrange(1, 11))

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