I2P-Bernard-Day2

Day 2

  1. Screenshots describing what you’ve completed on Codeacademy.

Screen Shot 2016-06-21 at 10.05.44 PM

Screen Shot 2016-06-21 at 10.05.49 PM

Screen Shot 2016-06-21 at 10.08.24 PM

  1. Describe briefly what you’ve learnt.

For Python, I learned how to use functions and I coded a small tool on Codecademy called “Taking a Vacation”. I also learned about Python lists and dictionaries, it was a little confusing but I used outside resources such as a YouTube video to help me.

For JavaScript, I mainly learned how to use “for loops”. It took me a while to understand the concept thats why I didn’t reach my goal of completing Unit 3. I will definitely finish this unit tomorrow.

  1. A few lines of code with comments showing your understanding of the code.

Python:

del zoo_animals[‘Sloth’]
del zoo_animals[‘Bengal Tiger’]
zoo_animals[‘Rockhopper Penguin’] = ‘Jungle House’

 

JavaScript:

var cities = [“Melbourne”, “Amman”, “Helsinki”, “NYC”, “HK”];

for (var i = 0; i < cities.length; i++) {
console.log(“I would like to visit ” + cities[i]);

  1. Other resources you came across in this learning process (e.g. a post from a discussion forum, an advice from your friends/classmates)

I used a YouTube video to help me. https://www.youtube.com/watch?v=6EtDsfxGv5Q

Leave a Reply