9/22/17 Update

Happy Sunday everyone!

This is an update for the week of 9/18/17 - 9/22/17, where I mainly focused on the Math Operators section of pythonroom.com.

I went through:
-addition and subtraction
-multiplication and division
-floats
-exponents
-modulus
-divisibility
-order of operations
-incrementing (and with other operators)

Most of it was pretty easy, but sometimes the problems did not explicitly use the new thing that it had just taught us, so it was difficult to type exactly what it expected. I learned that if you want to print an input that is a number, you have to put str( ) around it, because it must be a string to be printed. Similarity, when you want to print the answer to a mathematical calculation, you have to put int( ) (for integer) around the input that is simply a number.

The biggest section of Math Operators was incrementing, where you keep redefining a variable, and then using that redefined variable to calculate something else. This was pythonroom's explanation:
When assigning a value to a variable with the = operator, a computer first calculates the right side of the = sign, and stores the result in the variable on the left of the = sign.

This was hard to understand, but after playing around with a few examples, I got the concept.

Here are a couple of examples:

The population of bacteria in a petri dish doubles every hour. Given the initial number of bacteria in the petri dish, print how many there will be after 1 hour, 2 hours, and 5 hours.



Create additional variables to find the 10th Fibonacci number. Then print out its value.



So things are getting more complicated, but I think if you go slowly and read all the directions, it all makes sense. When in doubt, copy your response, refresh the page, and paste your code again. 9/10 times it's the site glitching. It is very frustrating when the one thing that you're missing is a space or a capital letter, but I guess coding wouldn't work as well if the rules weren't so precise. 

The other thing we focused on this week was the movie Video Games: The Movie. We watched the majority of it in class. Here is the link to the movie: http://videogamesthemovie.com/
It explained, in a pretty visually appealing way, how video games have evolved from the simplest Pong and PacMan to the complicated VR games we have now in 2017. It went through how different companies, such as XBOX and Nintendo, have produced their differing products throughout the past couple decades.
I find it interesting how there's such a balance between the manufacturing of games and their quality, as seen through the horrible E.T. video game that was rushed to production, only to be released when E.T., the movie, was released. (It was funny that all of them are in landfills now because it was just that bad)

We will be finishing watching the movie this week and moving into Logic Operators on pythonroom! We will also be starting a project related to the movie!

Have a fantabulous day!
Mimi



Comments