The Python print() Function: Go Beyond the Basics

The Python print() Function: Go Beyond the Basics

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 0h 57m | 205 MB

If you’re like most Python users, including us, then you probably started your Python journey by learning about print(). It helped you write your very own Hello Horld one-liner. You can use it to display formatted messages onto the screen and perhaps find some bugs. But if you think that’s all there is to know about Python’s print(), then you’re missing out on a lot!

Keep reading to take full advantage of this underappreciated little function. This course will get you up to speed with using Python print() effectively. Prepare for a deep dive as you go through the sections. You may be surprised how much print() has to offer!

By the end of this course, you’ll know how to:

  • Avoid common mistakes with Python’s print()
  • Deal with newlines, character encodings, and buffering
  • Write text to files
  • Mock print() in unit tests
  • Build advanced user interfaces in the terminal
Table of Contents

1 basic n literals
2 formatting
3 sep end
4 files
5 custom
6 py2
7 pprint
8 ansi
9 animation
10 mock
11 debugging
12 related