Module 1: Intro to Python

 

For the lab this week we used python to create several different lists and used loop functions to edit and produce variables from these lists. For the first part of the lab, we made a simple list of our name, and then used the split function to separate it and assigned an integer to produce an instance of our last names. For the second part we edited preexisting code for a dice game to produce separate instances of a dice roll based on random names. In the third portion of the lab we created a list of integers which we removed instances of in the fourth part using if else functions and while loops.

Comments