• Home
  • What is the output of the following? print(Hello {0!r} and {0!s}.format('foo', 'bin'))
Question 1:
What is the output of the following?
print(Hello {0!r} and {0!s}.format('foo', 'bin'))
A. Hello foo and foo
B. Hello ‘foo’ and foo
C. Hello foo and ‘bin’
D. Error

These questions are from this test. Would you like to take a practice test?

Python Quiz 1 | Englishfreetest.com