Vidyalelo
Python · Q138

MCQs for Python Strings: Exam

Programming · Python · question 138

Q138

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

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

Answer: Option D

Solution

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