Q.1.
What will be the output of the following Python code? print("abc DEF".capitalize())
Q.2.
What will be the output of the following Python code? print("abc. DEF".capitalize())
Q.3.
What will be the output of the following Python code? print("abcdef".center())
Q.4.
What will be the output of the following Python code? print("abcdef".center(0))
Q.5.
What will be the output of the following Python code? print('*', "abcdef".center(7), '*')
Q.6.
What will be the output of the following Python code? print('*', "abcdef".center(7), '*', sep='')
Q.7.
What will be the output of the following Python code? print('*', "abcde".center(6), '*', sep='')
Q.8.
What will be the output of the following Python code? print("abcdef".center(1))
Q.9.
What will be the output of the following Python code? print("abcdef".center('1'))
Q.10.
What will be the output of the following Python code? print("abcdef".center('12'))