Vidyalelo
Python · Q79

MCQs for Python Strings: Exam

Programming · Python · question 79

Q79

What will be the output of the following Python code? print("abcdef".center(10, '12'))

A.
12abcdef12
B.
abcdef1212
C.
1212abcdef
D.
error
Answer

Answer: Option D

Solution

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