Summing up random numbers

Asked 2 years ago, Updated 2 years ago, 15 views

I was studying basics and I was going to make a dice game
2 players throw 5 times each to make a game in which a player with a larger sum wins.

As shown above, we have created a code to make the results come out randomly five times, but how do we convert it to the sum of the numbers in the results?

python

2022-09-20 16:40

1 Answers

sum(diceP1)


2022-09-20 16:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.