As I'm tutoring someone through their introductory Computer Science course, I keep finding myself getting caught up in the Python 3 string formatting. His assignments seem to focus a lot on how to print out various formats, and I'm still stuck in handling how they worked in Python 2.7. I keep googling, and googling, and I often just find myself coming back to this reference.
Python String Format Cookbook
I'm just putting this up so that I can keep going back to this reference as I still adjust from Python 2 to Python 3.
EDIT: Just saw this cool writeup on Reddit: PyFormat.info
No comments:
Post a Comment