June 2017
Beginner to intermediate
274 pages
6h 49m
English
One of those corner cases I just mentioned is when we want the user to type in a password. If we use the input function to read the password, it would be displayed on the screen for anybody to read. The getpass package contains a function, also called getpass, which works just like input, except that it doesn't show the text that the user types.

The other corner case I want to mention is that, although the print function can print out any Python object, it doesn't do a good job presenting complex data structures.
Read now
Unlock full access