Objectives
The student will learn to refactor their first version of the Dice program by including the following new concepts:
The student will practice the following familiar concepts:
Note: Modifying a program structure without changing the program's external functionality is call refactoring.
BEFORE MODIFYING YOUR PROGRAM, CREATE A COPY OF IT TO KEEP
After you have modified your program correctly, copy and paste the code in the the visualizer at pythontutor. Watch the code and its results as you step through the execution of the program.
Now do the same for your first Dice program. Compare how flow through the program differs.