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

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
Answered by GPT 3.5
The answer is b. 1
Answered by GPT 3.5
The correct answer is c. "with great power".

Related Questions