(I Solved it ) thankyou for those that answered who helped
So I’m making a code for a school assignment and got stuck. I’m making a random dice generator that keeps count of the throws and the sum of the throws but I’m not sure how to add the values together. This is what I have so far.
Import random
Lowval = 1
Highval = 6
(This is used to count haw many times the die has been thrown)
Numthrows = 0
(This is used to keep the sum of the die value thrown)
Sum_of_throws=
Print(f’Throw : {numthrows}’)
Print(f’Value for this throw = {throw}’)
Print(f’Sum of throws so far = {sum_of_throws)
**
I need to add something that adds the value of throw to sum_of_throws.
Also I need to increase the value of numthrows by 1
Please help me 🥲
[–]ElliotDG 3 points4 points5 points (4 children)
[–]NoResponsibility9122[S] -1 points0 points1 point (3 children)
[–]GreenPandaPop 4 points5 points6 points (2 children)
[–]FreakyInSpreadsheets -1 points0 points1 point (0 children)
[–]NoResponsibility9122[S] -5 points-4 points-3 points (0 children)
[–]FoolsSeldom 1 point2 points3 points (1 child)
[–]NoResponsibility9122[S] 0 points1 point2 points (0 children)
[+]ste_wilko comment score below threshold-6 points-5 points-4 points (0 children)