Simple Dice Rolling Simulator
Level 1: Beginner
Project Level 1: Beginner
This project is designed for beginner learners who are still learning and practicing Python fundamentals.
Project Description
This project simulates a dice roll by generating a random number between 1 and 6. Each time the program runs, it "rolls the dice" and displays the result. This project introduces students to working with random numbers and basic output formatting.
How the Project Works
The program will use Python’s random module to simulate rolling a six-sided die. Any time the program runs, it displays am message containing the random number:
Prerequisites
Required Libraries: random
Required Files: No files are required.
IDE: You can use any IDE on your computer to code the project.
Danger Zone
Once you code the project, compare it with our two solutions given in the button below.







from random import randint
roll = randint(1,6)
print (f"You rolled a {roll}!")
import random
message="You rolled a"
print("Rolling the dice")
print(message,random.randint(1,6))