Checkpoint 7.10.1.
- Nothing - it causes an error
- It is legal format syntax: put the data in place of the braces.
- sum of {2} and {6} is {8}; product is {12}.
- The braces don’t appear in the output.
- sum of 2 and 6 is 8; product is 12.
- Yes, correct substitutions!
What is printed by the following statements?
x = 2
y = 6
print(f'sum of {x} and {y} is {x + y}; product is {x * y}.')