how do i get a function to print my code?

diceSum was declared before the while loop, and is never reassigned again, so its value is always 7. In the loop you should add the line: diceSum = dice1 + dice2

EDIT: the diceCount is because of this Image

The print is in the else condition.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top