💡 What You'll Learn

Modules are files with reusable code. Import them with import to use functions and variables from other files. Python has many built-in modules!

math - math functions
random - random numbers
datetime - date & time
os - operating system
modules.py
1import math
2print(math.sqrt(16)) # 4.0
3print(math.pi) # 3.14159...
đŸ“ē Try math functions!
Click to calculate!

đŸŽ¯ Your Challenges

1Random Number
Use random.randint(1, 10) to get a random number
2Round Number
Use round() to round 3.7
3Absolute Value
Use abs() to get absolute value of -5

📚 What You Learned