Vidyalelo
Python · Q8

Formatting and Decorators

Programming · Python · question 8

Q8

What will be the output of the following Python code? s='0, 1, and 2' s.format('hello', 'good', 'morning')

A.
'hello good and morning'
B.
'hello, good, morning'
C.
'hello, good, and morning'
Answer
D.
Error

Answer: Option C

Solution

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