Step 1 of 7

Step 1 · Read and run

Values inside text

Commas in print() work, but they always add a space, and long lines get fiddly. An f-string is neater.

Put the letter f just before the opening quote mark. Then anything inside {curly brackets} is worked out and dropped into the text.

Both lines below print the same thing. Run it.

Run the program to carry on.
fstring.py

Output

Press Run to see what your program prints.