1. Roll the dice
Write code Easy ✓ CompletedWrite a function roll_dice(count) that returns a list of count random die rolls. Every roll is a whole number from 1 to 6, and 6 must be possible. Use random.randint.
import random
def roll_dice(count):
# return a list of count rolls, each from 1 to 6
pass
random.seed(11)
print(roll_dice(5))
import random
def roll_dice(count):
return [random.randint(1, 6) for _ in range(count)]
random.seed(11)
print(roll_dice(5))