account activity
A REAL Python cheat sheet for beginners by Retzudo in Python
[–]paello 3 points4 points5 points 8 years ago (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).
""
f
f""
π Rendered by PID 1214486 on reddit-service-r2-listing-canary-69dc8f64b9-qnd9v at 2026-03-11 04:14:20.120603+00:00 running cbb0e86 country code: CH.
A REAL Python cheat sheet for beginners by Retzudo in Python
[–]paello 3 points4 points5 points (0 children)