Day 3

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

Screen Shot 2016-06-22 at 11.34.33 PM

Screen Shot 2016-06-22 at 11.35.05 PM

Screen Shot 2016-06-22 at 11.35.11 PM

  1. Describe briefly what you’ve learnt.

Today, I completed Unit 5 of Python and I also completed Unit 4 in Javascript. I am a bit behind schedule but will try my best to catch up (because I also have a day course at school).

For Python, I learned how to apply Lists and Dictionaries. For example in the activity where I had to create a supermarket calculator.

For JavaScript, I learned how to use while loops and do while loops. I also learned how to apply it to different context in the activity, “Dragon Slayer!”.

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


def compute_bill(food):
total = 0
for key in food:
if stock[key] > 0:
total = total + prices[key]
stock[key] = stock[key] – 1
return total


while (slaying) {
if (youHit) {
console.log(“You hit the dragon and did ” + damageThisRound + ” damage!”);
totalDamage += damageThisRound;


  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=HS4iN4-SdHo

Leave a Reply