Lab Four

The coding exercise was relatively straightforward, I used a loop to explain to the computer I wanted it to print out characters of the predefined terms in reverse order.

This is the nth try...

Code is clean and runs well

Next up, for exercise 3, I utilized the .append function to stick the new list into the old list, and used a total = total + x function to add up the numbers in the original list. Finally, the original and new lists were printed out.

.append for the win

.append for the win

Leave a Reply

Your email address will not be published. Required fields are marked *