Q16
Computer ScienceChapter 04c: Python — Modules, Packages & Libraries
Question No. 16 (Group C)
Problem Statement

[User-Defined Function] Find the output: def sum_digits(n): s = 0 while n > 0: d = n % 10 s = s + d n = n // 10 return s num = 253 print(sum_digits(num))

High Frequency SEE Question Difficulty: Moderate

Need help memorizing these 4 formulas?

Review the Master Formula Cheat Sheet curated by SEE gold medalists.

Open Formula Sheet →
Question 16 of 67(Compulsory Math SEE Bank)
22.4%