This week's assignment was a rough go. It started out simple enough, in the first two steps we were to import a random module and then find and correct two errors in a loop that was already written.
Then in step 3 we were to create a 'while' loop that added 20 random numbers to a blank list. This is where it got tough. After two days of trial and error and intense reading and rereading, I finally got it. Then it was on to step 4, where we were to write a code that created an unlucky number and removed it from the list. This was also tricky, but not quite as time consuming as step three. This was my final result:
No comments:
Post a Comment