adplus-dvertising
frame-decoration

Question

What is the output when following statement is executed ?(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

Posted under Python

Answer: (d).Welcome   # 111#924.66

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output when following statement is executed ?(python 3.xx)