Write a program to design a dice throw function


Topic: Write a program to design a dice throw function

Solution

import random
def dice():
    return random.choice([1,2,3,4,5,6])
    



List all Python Programs