Today we went over methods of flow control available to Python e.g. if, while, for.
For the second half of the lesson we worked on a “FizzBuzz exercise” where we had to create a counter that would count up to a given number and print the following:
If a number was divisible by 3 and 5, print “FizzBuzz”
If a number was divisible by 5, print “Buzz”
If a number was divisible by 3, print “Fizz”
If non of the above are true print the number.
We also did a few different variations of this script.
Today we had an exercise in data manipulation using Python to access .csv files.
I had to start by reviewing the code that we were giving in order to understand how the existing code worked. Then I was able to start figuring out how I would be able to complete the exercises.
I’m going to build an app that allows for easy viewing and analysis of the data contained in the data-source ( which contains data on agricultural and horticultural land-use in New Zealand between 2002-2016 ) that I have selected for the project.