Lesson 22 of 55
PythonImporting Standard Library
20 minutes
Course progress40%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 22 of 55
Python20 minutes
Keep these ideas in mind as you work through the lesson.
Python ships with a rich standard library that offers modules for OS interaction, mathematics, networking, and more—no extra installation required.
import os
import sys
import math
print('Current working directory:', os.getcwd())
print('Python version:', sys.version)
print('Square root of 16:', math.sqrt(16))
Explore the full library at https://docs.python.org/3/library/.