Die roll! (Python)
Hello everyone this is how to make a die roller in 🐍 🐍 Python !🐍 🐍
#Lets get started!
So first we’re gonna need randint so type this in a python repl:
from random import randint
Second, we are going to ask the user the size of the die:
sizeOfDie = input(“How many sides is the die?”)
And then we print the “roll”:
print(“Die roll: \n”)
dieRoll = randint(1, sizeOfDie)
Bye y’all! Hope you enjoyed!