Explicación de los elementos básicos de python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
375 B

import random as rand #imports library random
#sets library alias to rand
size = int(input("Enter dice size:")) #Asks for dice faces
print("You rolled a ",rand.randint(1,size))
#Prints result of roll using randint
#from the random library