This week's module introduced us to methods, functions and conditional for and while loops. We were tasked to fix and create a script that printed our last name from a list, ran a dice game, and created a list of 20 random integers between 0 and 10 and removing a chosen integer from the created list.
I had some trouble with the print function in the third step printing all 20 lines of appending random integers to the list, but I remembered the print function needed to be indented properly for it to only print the final result.
Below is the flowchart for my script:

No comments:
Post a Comment