Vidyalelo
Python · Q41

MCQs for Python Strings: Exam

Programming · Python · question 41

Q41

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

A.
* Abcdef *
B.
* abcdef *
Answer
C.
*abcdef *
D.
* abcdef*

Answer: Option B

Solution

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