Python 3 Tutorial 20 - Formatted Strings

Published: 14 December 2025
on channel: Ken
5
1

f-string (short for formatted string)
The letter f before the string’s opening quote indicates it’s an f-string. You specify where to insert values by using placeholders delimited by curly braces ({ and }).

number1 = 7
number2 = 5
print(f'{number1} times {number2} is {number1 * number2}')
7 times 5 is 35

print(f'Class average is {average}')
Same as
print('Class total is ', total)


On this page of the site you can watch the video online Python 3 Tutorial 20 - Formatted Strings with a duration of hours minute second in good quality, which was uploaded by the user Ken 14 December 2025, share the link with friends and acquaintances, this video has already been watched 5 times on youtube and it was liked by 1 viewers. Enjoy your viewing!