Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mood Analysis
Congratulations! You're submitting your assignment.
Comprehension Questions
| Did you find yourself repeating the same code? Why did you have to do it that way? | |
Yes, when I thought about the different ways a user could interact with the program, I found myself
repeating very similar lines or in many cases the exact same code. Right now, I use these methods because they are the one's I'm most aware of.
| What type of loop did you use? Why did you choose that type? | |
I used a times loop in cases where I had a fixed amount of iterations I wanted a loop to execute and that number was known. I used a while loop in cases where the condition of the loop was not known to be true until the variable was assigned by the user.