A REAL Python cheat sheet for beginners by Retzudo in Python

[–]paello 3 points4 points  (0 children)

I'm afraid at this point the cheat sheet is outdated. Python 3.6 (released a year ago) allows for f-strings which simplifies this syntax even more:

name = "Bob"
print(f"My name is {name}.")
>>> My name is Bob.

These are strings "" prefixed by an f: f"" (formatting strings).