Modules
Modules
A library (or module) is a file containing pre-written code built by other developers or Python itself. Instead of writing complex math or time-tracking code from scratch, you can import these libraries into your project to use their built-in functions.
import module_name: Brings the entire library into your code.
You access library features using dot notation (e.g., math.sqrt()).
Write a Python console game using the random and time modules where the computer displays a random choice (Rock, Paper, or Scissors) every 2 seconds.
Solution (Run this code locally in VS Code to observe expected result)