In Python, strings are used to represent text and bytes are used to represent binary data. If you end up with bytes that representing text, you can decode them to get a string instead.| www.pythonmorsels.com
To work with a text file in Python, you can use the built-in open function, which gives you back a file object. Reading from and writing to text files is an important skill.| www.pythonmorsels.com
When exceptions go unhandled, Python prints a traceback. Tracebacks are read from the bottom upward. The last line describes what happened and lines above describe where it happened.| www.pythonmorsels.com