Sail E0 Webinar
Question
What is the output of the following?print("Hello {1} and {0}".format('bin', 'foo'))
Options:
A .  Hello foo and bin
B .  Hello bin and foo
C .  Error
D .  None of the mentioned
Answer: Option A


The numbers 0 and 1 represent the position at which the strings are present.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers