Vidyalelo
Python · Q148

MCQs for Python Strings: Exam

Programming · Python · question 148

Q148

What will be the output of the following Python statement?(python 3.xx) >>>print(format("Welcome", "10s"), end = '#') >>>print(format(111, "4d"), end = '#') >>>print(format(924.656, "3.2f"))

A.
  Welcome# 111#924.66
B.
Welcome#111#924.66
C.
Welcome#111#.66
D.
Welcome   # 111#924.66
Answer

Answer: Option D

Solution

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