What will be the output of the following Python code? print(‘*’, “abcde”.center(6), ‘*’, sep=”)

Questions & AnswersCategory: Programming LanguageWhat will be the output of the following Python code? print(‘*’, “abcde”.center(6), ‘*’, sep=”)
Geek Boy Staff asked 2 years ago

What will be the output of the following Python code?

print('*', "abcde".center(6), '*', sep='')

a. * abcde *
b. *abcde *
c. * abcde*
d. * abcde *

1 Answers