Vidyalelo
Python · Q55

MCQs for Python Strings: Exam

Programming · Python · question 55

Q55

What will be the output of the following Python code? print("Hello name1 and name2".format('foo', 'bin'))

A.
Hello foo and bin
B.
Hello {name1} and {name2}
C.
Error
Answer
D.
Hello and

Answer: Option C

Solution

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