Question
How many additional str.format() parameters are expected if the format string parameter contains "Happy birthday {}, happy birthday to you"?
Select one:
a.
2
b.
1
c.
0
d.
3
Select one:
a.
2
b.
1
c.
0
d.
3
Answers
Answer
What string value is stored in the answer variable after the following statement is run?
answer = str.format("{2} {1} {0}", "with","great","power")
Select one:
a.
power great with
b.
great power with
c.
with great power
d.
power power power
answer = str.format("{2} {1} {0}", "with","great","power")
Select one:
a.
power great with
b.
great power with
c.
with great power
d.
power power power
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.