Summary:
This program is extremely simple, and it basically is just reusing past knowledge. It imports a random module, sets the first dice to random numbers one through 6, then adds them together for the Dicesum variable. Finally it sets the Diceprint variable to a string combining the first number, then a space, the second number, then a space, and then "Total of", then another space, and then the total of the two dice. The purpose of the Diceprint variable is so that all of the data can be easily printed in future programs. Also, this is my first program that I used a comment in, the comment is completely irrelevant because it was mainly just a test.
Issues:
There were no issues in this program worth noting.
Profit:
I learned how to use comments from this program, also the program reenforced past knowledge so it was not forgotten.

No comments:
Post a Comment