Back to Browse

4 Single Characters in Python // Underscore, Asterisk, Semicolon in Python and Jupyter Notebook

1.7K views
Mar 22, 2021
13:30

Learn about four single characters you can add to your Python and Jupyter Notebooks in this coding tips tutorial. First, I show you how to use the underscore as a throw away variable in Python. Then we talk about using the asterisk as an unpacking operator. This lets you input an unknown number of arguments into Python functions using the convention Python *args. Next up, I show you how to use the question mark in Jupyter Notebook to load the docstring and learn more about functions or variables. Finally, I walk you through using a semicolon in Python, which can be used as a separator but is most commonly used in Jupyter Notebook to suppress output. It's common to use matplotlib semicolons when making plots. 0:00 Introduction 0:31 Underscore, _ 3:26 Asterisk, * (*args) 7:31 Question Mark, ? 9:35 Semicolon, ; Github Code: https://github.com/kimfetti/Videos/blob/master/Python_Tips/Single_Characters.ipynb Related Videos: Matplotlib Tips Playlist -- https://www.youtube.com/playlist?list=PLtPIclEQf-3dJmAj3IsSRwRoLbX-n3J81 #pythontips #python

Download

1 formats

Video Formats

360pmp420.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

4 Single Characters in Python // Underscore, Asterisk, Semicolon in Python and Jupyter Notebook | NatokHD