Vidyalelo
Python · Q96

MCQs for Python Strings: Exam

Programming · Python · question 96

Q96

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

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

Answer: Option D

Solution

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