(Python3) No Dice? No Problem - Help with the task
I've got a problem to solve that task. I'm a little bit confused about which concepts I must use to solve the problem. I've tried to solve it in two diferent ways, which I paste below. Task Two friends want to play backgammon, but have lost the dice. Create a program to replace the dice. When the program is run, it should roll the dice and output the result of each die. Use random.randint() function to generate random values in the range of 1 to 6 for each dice. 1) import random random.seed(int(input())) #please don't touch this lane def dice1(random.seed) for i in range(6) return random.randint(1,7) def dice2(random.seed) for i in range (6) return random.randint(1,7) print(dice1) print(dice2) 2) import random random.seed(int(input())) #please don't touch this lane for i in range(6): dice1 = random.randint(1, 7) dice2 = random.randint(1, 7) print(dice1) print(dice2) Thank you in advance!