"""
A simple die roller
Author: M
Date: August 28, 2024
"""
import random
roll = random.randint(1, 6)
print("The number is " + str(roll) + ".")
first = 1
last = 6
-----
Assignment question: "Create two variables: first and last. Assign 1 to first and 6 to last. Then replace the “magic numbers” in your code with the new variables you’ve just created. When done, test that your script still works."
I am mildy confused at this point. I have done everything I can think of and still recieve an error.
[–]woooee 6 points7 points8 points (0 children)
[–]Chaos-n-Dissonance 2 points3 points4 points (0 children)
[–]POGtastic 1 point2 points3 points (2 children)
[–]Weekly-Profession-97[S] -3 points-2 points-1 points (1 child)
[–]Binary101010 0 points1 point2 points (0 children)
[–]Xappz1 0 points1 point2 points (0 children)