Command Line Python Scripting: Takeaways: Syntax
Command Line Python Scripting: Takeaways: Syntax
Takeaways
by Dataquest Labs, Inc. - All rights reserved © 2021
Syntax
• Install Python packages
pip install [package name]
• Upgrade pip
pip install --upgrade pip
Concepts
• Command line python interpreter:
• Good for testing snippets of code quickly, as well as debugging.
• Not good for developing Python programs.
• Common way to develop with Python: use an IDE or text editor to create Python files, and then
run from command line.
• We can import functions from a package into a file as well as functions and classes into another
file.
Resources
• Python Package Index
• Python Virtual Environments - A Primer