Lesson 13: Importing Modules

Don't write everything from scratch! Python has many libraries ready. random is one of the most fun.

Import random

Use randint(a, b) for a random number.

import random dice = random.randint(1, 6)

Your Objective

Simulate a coin flip (Heads or Tails).

main.py
Initializing Python Environment...