N Như Quỳnh New member Sep 21, 2021 #1 What will be the output of the following Python code? Code: print('*', "abcdef".center(7), '*', sep='') A. * abcdef * B. * abcdef * C. *abcdef * D. * abcdef*
What will be the output of the following Python code? Code: print('*', "abcdef".center(7), '*', sep='') A. * abcdef * B. * abcdef * C. *abcdef * D. * abcdef*
L Linh Chi New member Sep 21, 2021 #2 Answer: d Explanation: Padding is done towards the left-hand-side first when the final string is of odd length. Upvote 0 Downvote
Answer: d Explanation: Padding is done towards the left-hand-side first when the final string is of odd length.