Vidyalelo
Python · Q77

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 77

Q77

What will be the output of the following Python code? a=165 b=sum(list(map(int,str(a)))) print(b)

A.
561
B.
5
C.
12
Answer
D.
Syntax error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board