← Back to Exercises
🎲

Modules & Random Fun â€ĸ Exercise 90 of 112

Roll a Die

Easy⭐ 20 XP🏆 Your XP: 0

đŸŽ¯ Your Mission

Import the random module and print a random number from 1 to 6, just like rolling a die.

🐍 main.pyTab = 4 spaces â€ĸ Ctrl+Enter = Run
â–ļ Output
Press â–ļ Run to see what your code does!