Examveda

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

A. 12abcdef12

B. abcdef1212

C. 1212abcdef

D. error

Answer: Option D


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python