Earn Your Business Degree, Tuition-Free, 100% Online!
Start speaking a new language. It’s just 3 weeks away.
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial shows how to use Python f-strings to insert values into strings and apply formatting options. It compares f-strings with percent formatting and the .format() method, then applies them to a Rock Paper Scissors program.
Syllabus
Intro
Welcome
How We've Been Inserting Values into Strings
Formatting with percent signs
The .format method
Why move on to f-Strings?
f-Strings examples
Passing format options
Updating Rock Paper Scissors with f-Strings
Taught by
Dave Gray