Exam Q1 Practice – SAM 0

A program simulates the roll of a dice. The program uses a random number generator to create a random integer, between 1 and 6, to represent the roll.

Amend the code to add or complete lines to:
import the random library
create one variable
create one constant
assign the result of a library call to a variable
display a message and the contents of a variable on the screen.

Do not add any additional functionality.

Scroll to Top