Wednesday, June 1, 2016

GIS 4102/5103: Python Fundamentals Part II

This assignment took a lot longer than expected.  This past week, we practiced using the while loop, the if statement, along with some other functions.  We were asked to create a list of 20 random integers between 0-10, which you'll find in the image below.  That list was created using the while loop and the .append function.  And then we were asked to remove an unlucky number from that previously created list.  I was unable to figure out the .remove function, so instead I used the if and else statements followed by the while loop.  

This assignment was definitely a challenge for me.  The most difficult part for me is understanding the language.  But I'm hoping to learn more and be able to understand everything as the semester goes on.  




No comments:

Post a Comment