Vidyalelo
Python · Q60

MCQs for Python Strings: Exam

Programming · Python · question 60

Q60

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

A.
1abcdef
Answer
B.
abcdef1
C.
abcdef
D.
error

Answer: Option A

Solution

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