Vidyalelo
Python · Q107

MCQs for Python Strings: Exam

Programming · Python · question 107

Q107

What will be the output of the following Python code snippet? print('ab'.zfill(5))

A.
000ab
Answer
B.
00ab0
C.
0ab00
D.
ab000

Answer: Option A

Solution

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