Examveda

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

D. Syntax error

Answer: Option C


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python