1.2.4 Modules & The Standard Library

Unit: Unit 1: Fundamentals of Python • Interactive Practice

Quick Answer & Summary:

Interactive Python programming tutorial and practice in your browser.

Interactive Challenge (Run Live in Browser):

import math

number = 64
root = math.sqrt(number)
pi_value = round(math.pi, 4)

print("Square root of", number, "is", root)
print("Pi is approximately", pi_value)
Open in Live Interactive Python Sandbox →