I2P(F)-Simon Kye-Day 2


Image above for proof of completion (Python, Strings, Date and Time, Conditional & Control Flow,)

Python (lesson) has been completed on set up day. The screenshot and findings have been copy and pasted onto this blog post too.


Setup Day/Day 1 (Things I Learned)

Learned how variables and strings work

How to give values such as integers and float. Integer (without decimals), float (with decimals)

Command called “print” to write things on the screen

Learned what booleans are defining true and false with 1 and 0’s which are the same as binary digits.

Learned how multiple strings work (With “””)

Different type of divisions (/ & %) / rounds up to integers when only integers used, % gives remainder

annual_rainfall += august_rainfall. This means add onto the variable annual_rainfall with august rainfall

There’s no way to show javascript on its own and needs a separate type of code to show it


Day 2 (Things I Learned)



Learned strings can be attached to variables i.e hello = “hi”

If you want to use quotation marks within your strings use \ before the ‘ to avoid computer thinking that the ‘ is the end of the string.

Each character inside a string is assigned a number called a index and starts with 0 and can use code like c = “cats”[2]. (When printing variable c, ‘t’ will be printed)

len(variable): Shows length of string

variable.lower():makes string all lowercase

variable.upper():makes string all uppercase

str(anything):Turns non-strings into strings.

%() has another use to replace %s (with a string) or %02d (The 0 means pad anything left with 0s, the 2 means to pad to 2 characters wide, d means the number is a integer). Also any number of %s can be inserted as long as it corresponds with the number of %() there is.


string_1 = “Camelot”
string_2 = “place”

print “Let’s not go to %s. ‘Tis a silly %s.” % (string_1, string_2)

This will print Let’s not go to Camelot. ‘Tis a silly place.

Something else I learned was not taught directly in codeacademy but I can guess how it works. variable = raw_input(string). This works so that the console will show you the string and whatever the person types in becomes the variable.

I found commands such as len() str() lower() and upper() to be quite confusing as variables were placed in different locations

Date and time:

The date and time lesson was very simple and just a few things to keep in mind. We always must put this in our code ‘from datetime import datetime’ and ‘now = datetime.now()’ to import from the datetime library and to set the variable as now when using commands such as (now.month, now.day, now.year, now.hour, now.minute, now.second). These are all very self explanatory. They behave like variables but only show certain parts of datetime.now

Conditional & Control Flow:

This allows computers to choose depending on what type of input we give.


== means equal

!= means to not equal to

< or > less or greater

<= or >= less or equal to or greater or equal to

Depending on if it is true the computer will give out if the statement is true or false

** means to the power of

Boolean Operators:

‘and’ checks for if both statements are true and is evaluated second

‘or’ checks if at least one is true and is evaluated last

‘not’ gives opposite of statement and is evaluated first

() can be used just like arithmetic equations to prioritize

‘if’ function checks if something is true then if true, does what is written below. (Indentation is important and remember to add : at end of ‘if’ statement)

‘else’ is used if a ‘if’ function is false

‘elif’ is like a second ‘if’. If the first ‘if’ is false, then use ‘elif’. Keep in mind this can be used infinite times and follow the order.


variable = raw_input(Question): Does exactly as predicted above

Useful tip: To check if the user inputted anything, use ‘if len(string) > 0’ to figure out if they typed something.

variable.isalpha(): Checks if string is all letters, and returns with true/false



console.log(“Log whatever here”); equivalent of print in python ‘;’ to end command

Data Types:

strings = same as python

Numbers = exactly as how they sound

Booleans= same as python

Null = absence of a value

You can use math operators just like python (% not mentioned in lesson)

instance: is a individual case or object of a data type

.length: finds length of string

.toUpperCase(): Makes everything uppercase

.startsWith(“letter”): Checks if string starts with that letter and gives back true/false

.trim(): Removes whitespace at start and end of string

Instance methods, by definition, require that you create an instance before you can use them. What if you want to call a method without an instance? That’s where JavaScript libraries come in. Libraries contain methods that you can call without creating an instance. (? not too sure what this does)

Math library: Used for numbers (Presumably)

Math.random() * 50; This makes it choose a number between 0 to 50 as it chooses a number between 0 and 1 we just multiply

Math.floor(): Makes sure the number is a whole number. i.e. Math.floor(Math.random())

Math.ceil(): Finds a integer greater or equal to the number posted

Number.isInteger(number): Checks if number is a integer

// = Make comments

const & let: Ways to declare variables

const: Variable that can not change

let: Variable that can be changed

undefined: A different type of data type for variables that

Using a variable twice can be confusing such x = x+1 so 1+=x exists and same goes for every notation

Instead of using ‘string ‘ + variable you can insert variable using ${} inside the string and using ` instead of ‘ for strings

if(): Same as python but condition is stored between ()

then: Same as elif from python

! changes the value of true/false to opposite

Comparison values are same as python

=== checks if two things are the same

!== checks if two things aren’t the same

&& is same as ‘and’ in python

|| is same as ‘or’ in python

switch is same as if/else i.e.

switch (groceryItem) {

   case ‘tomato’:

     console.log(‘Tomatoes are $0.49’);


The else is replaced with ‘default’

The command case checks for grocery item and if groceryItem is tomato, then follows the following command and break ends the command

Another way to use if/else is with ternary operators

isNightTime ? console.log(‘Turn on the lights!’) : console.log(‘Turn off the lights!’);

This checks if isNighTime true and if it is true it runs the first command and does the second if false. The : separates the two commands


Daily Challenge:

Circle & Triangle Area Calculator:

With the lesson from codeacademy and a quick glance from Sean’s project (as I didn’t know where to start), I was able to come up with this code. But I ran into some problems that were fixed with some easy google searches. I googled the variable.isdigit() which checks if the input is all digits, I also searched up how to get the value of pi from google by importing from math and to put in math.pi instead of pi, I also searched up the quit() command which ends the code where the quit() is. I made a output for basically all scenarios. I made sure that if nothing was inputted, it would ask to type something in the box, and made sure the answers were all numbers when asking for radius/width/height. I have the quit command at the end of circle code as if this isn’t there, it would go to the ‘else’ command at the end of the code as the code continues to read through if question==triangle, but because it is circle it also outputs on the console “Chooses between circle and triangle”. Something I don’t get is when I put the code as “if question == ‘circle’ or ‘Circle'” or “if question == ‘triangle’ or ‘Triangle'”, it would be very weird like the examples shown below, so I just kept it as ‘circle’ and ‘triangle’ without the capitalizations as it became too buggy.


Rock Paper Scissors:

I learned the command prompt which is same as raw_input from python. Besides that theres not much to say about this as I followed the instructions from codeacademy. This activity helped me deepen my understanding in javascript

I2P-Simon Kye-Set Up Day

Codeacademy Findings:

On codeacademy, I’ve finished the “Python Syntax” lesson (Proof shown above as I’m at the last step completed)

Things I Learned:

Learned how variables and strings work

How to give values such as integers and float. Integer (without decimals), float (with decimals)

Command called “print” to write things on the screen

Learned what booleans are defining true and false with 1 and 0’s which are the same as binary digits.

Learned how multiple strings work (With “””)

Different type of divisions (/ & %) / rounds up to integers when only integers used, % gives remainder

annual_rainfall += august_rainfall. This means add onto the variable annual_rainfall with august rainfall

There’s no way to show javascript on its own and needs a separate type of code to show it


Vlog (Self Introduction Video)


Design Thinking Activity: During the design thinking activity, I made instructions on how to make spaghetti and meatballs. It was a comprehensive guide that was beginner friendly on how to make spaghetti and meatballs. Unfortunately, I’ve lost the sheet of papers containing the instructions, but this wasn’t my first time using the design thinking activity so I was able to make a set of instructions keeping in mind that even people with little knowledge of cooking should be able to understand this. Because of this, my partner who reviewed my paper and had one feedback to give me, such as, “How much olive oil should I put?” There are 5 steps in the design thinking activity, empathise, I know that the person who creates something has a completely different perspective compared to a random person, and I have to make sure no questions pop up if a random person reads my paper. Define, making the question more detailed and refined.  Ideate, to come up with a solution. Prototype, to create what you’ve thought of. Then test, to get feedback from others and test it to refine it or to know if the product is good. This activity mainly helped us develop our skills with empathising and somewhat prototyping and testing/


Explanation of JavaScript, Python, and Google Script

Javascript: Javascript is the classic of all the programming languages and is used in almost everything and can come in very handy. It is speedy and simple but that doesn’t mean it’s the best language to use in all situations.

Python: Python is a much more newer programming language compared to Javascript. It is also easier to learn, read, and use, but runs slower and typically isn’t used in most phone applications.

Google Script: This is a enhanced version of Javascript. Using the same coding language but adding more features especially made for google drive files to make quality of life better for those who look to do more complex stuff with google spreadsheet/doc.


“Hello World” Activity

I first opened textedit and made the file a plain text file. I’ve had previous experience with HTML and I wrote the code (1st image shown below) I had to use a bit of google to figure out what the javascript commands(? I don’t know the proper terminology) were, such as <script> and ‘alert’.


In a HTML file, the format is made with <> symbols. We put our object in here, and something that we must remember to do is to also end it with a </>. That is why there is 2 of everything. When we put objects inside objects in the code, that’s exactly what happens on screen. <html> shows that the file is a html file. Then, <body> is the contents of the html file and can range from words, images, videos, to codes. <h1> is then used to show that text is being added here. Then text is added between the two <h1>. The number next to the h specifies what size the words are. <script> then shows the html file that this is code written for javascript and the computer reads it as such and the code is written between <script>. Then there is the ‘alert’ command which makes a pop up notification on your browser of the thing written. In this case, “Hello World!” will show in the alerts. Something I observed about this is that it seems to only work on browsers as it doesn’t work on textedit. If we combine all of this together, we get a blank screen with the words “Hello World!” and the popup “Hello World!” (2nd and 3rd images below). Something else to note was that the page wouldn’t load until the popup was dismissed

Timestable Program:

Design Thinking Process:

Empathise: Something Ms. Mok doesn’t want to see is a python program that only has print with all the numbers and multiplication just written out by me so I’ll have to think of a different way to make this timestable.

Define: I have to make a timestable using functions, variables and strings without just using only print function

Ideate: I will most likely make it that the code print outs 5 timestable on top. I will then make it so that there is a placeholder of “5 * (variable)” that repeats 12 times but it will update each time to make it go up by 5 each time.

Test: In the beginning I tried writing the code so that I had to make some sort of new variable such as “turn” turning into “secondturn” and it would go until 12 and I realised that would take a very long time. (Image Below)

Ideate: So I tried experimenting so that I didn’t need a new variable each time, and I realised the importance of order in code, just like in HTML, it is also important the order the code works. I was able to update ‘turn’ so that after the computer printed out the original product after calculating, it would update ‘turn’ by adding 1 to it. I would then update product to multiple it by the new ‘turn’ and I repeated that to make my timestable and the product looks like this.


Code: (Repeated 12 times, but not shown 12 times in photo)



I wonder if there is a command in java script to repeat a command a certain amount of times…  So I went on youtube and found this video. This video taught me how ‘for’ functions work. I’m not completely sure how they work but I assume they’re like a ‘if’ command from scratch, and the condition was that if the ‘range’ of the turn was within 12. As long as this condition was met the command listed below would repeat. This is how I made my code much more shorter and simpler from my first version.

Test: Success!

Code & Product



Last Blog Post 8th Grade

Screen Shot 2016-06-06 at 2.26.49 AM

These songs show how I’ve felt throughout this year in Grade 8. I have many themes in this playlist. Such as happiness, stress, and resistance.

1. Started from the Bottom – By Drake

I chose this song as it literally says it in the title and the lyrics. It shows how far I’ve grown from the beginning of the year. It was challenging in some points but we’re all here.

2. Stressed Out – By 21 Pilots

During this year, in some points, I felt stressed out during some projects. It could be because of due dates or teammates. Stress is one of the biggest problem in school but we’re going to have to make good use of it. As we learned from our TED Talk.

3. 7 Years – By Lukas Graham

This song is kind of depressing. But it more represents how far I’ve gone and how much I’ve changed from the beginning of the year, or the beginning of middle school. It also talks about the future and whats going to happen and I feel like I have a clear vision of my future.

4. On Top of the World – By Imagine Dragons

This song is talks about how you’re on top of the world after waiting. This exactly represents grade 8. It shows how after waiting and working for a while, I’m finally on the top and have reached my goal. Even though there’ll be more in grade 9 and onwards.

5. Happy – By Pharrell Williams

This song just represents how this year was one of the most fun years I had in HKIS and how amazing it was. The experiences I had were interesting and I was overall happy during grade 8.

6. Stronger – By Kelly Klarkson

This song  shows resilience and independence. Something required and used in grade 8. It shows you have to be resilient and that you’ll grow from your problems and make you stronger. Which is what I did in 8th grade. As I learned from my mistakes and tried to fix it.

7. Love Myself – By Hailee Steinfield

This song shows that you should care about yourself and that you should grow your independence and thats what I did in grade 8. As it tested my independence during certain activities.

8. Fight Song – By Rachel Platten

This song talks about how you should believe in yourself and that you can get through anything if you try. No matter how big the problem is, you should be resilient. I was resilient in 8th grade with difficult projects.

March (m)INP Blog Post #1

Screen Shot 2016-03-05 at 11.16.18 PM


In this blog post, I’m going to be analyzing the character Boxer from the book “Animal Farm” by George Orwell. Animal Farm is meant to be satire book comparing to the Russian Revolution with animals and I’ll be comparing Boxer with the people in the Russian Revolution.

Boxer is the horse in animal farm and is the strongest in the farm. Boxer takes a major roll of rebuilding the windmill and is looked up to by all the animals in the farm as he is so dedicated into making the windmill. Across the books, I’ve realized Boxer is the most dedicated animals in the farm. I say dedicated, not passionate. As the only thing that drives Boxer forwards is his motto of Napoleon is always right. He can’t think for himself or others. He is like a robot. He is told what to do. Whenever the windmill gets destroyed, they are in worse conditions but Boxer works harder than ever, each time they destroy the windmill. He is so dedicated to the windmill, that he eventually dies because of his health conditions from building the windmill. He were told of his health conditions but ignored them and kept working.

We can also tell that Boxer isn’t a intelligent animal, as he actually dies from working too much. He is unable to think for himself and only for the people in charge. He also knew that he would die but ignored it. Boxer is also not able to read or read the alphabet above D. Which also leads him to his death as he didn’t realize he was being put into a horse slaughter truck. Whenever something is wrong, Boxer doesn’t think for himself but instead says to himself that Napoleon is always right.

He is also one of the most inspiring animals in the farm. Boxer was a role model to the animals as he was strong and they thought they could rely on him. They were also inspired by his resilience every time he built the windmill. I believe that without Boxer, the windmill’s construction would’ve been much slower or maybe it might’ve not have been complete if it wasn’t for Boxer telling the animals. I feel that Boxer was a bigger reason why the animals helped build the windmill. They didn’t want to work for Napoleon’s tyranny but wanted to help Boxer and looked up to him.

           Boxer was also a very “Loyal” animal. He does everything in his power to build that windmill. He is “loyal” to Napoleon as he believes everything Napoleon does is right and reasonable. Instead of loyal, I would say manipulative. He was brainwashed by the pigs to be loyal to Napoleon. Not literally, but I think he began to believe in the quote, “Napoleon is always right.” when the pigs repeated it over and over. I think that before Snowball was kicked out, he could think for himself. Because right before Snowball was kicked out, that was the last time in the book where he thought for himself and questioned others. We also can tell as Boxer was a very gentle animal and he doesn’t like or believe in killing. We can tell, when he kills the farmboy during the battle for the farm by accident. But when Napoleon starts executing the animals,  He is also very dependent. He needs Napoleon’s “rule” and I believe if Napoleon was gone, he wouldn’t know what to do.
          I think Boxer was the workers in the Russian Revolution. I’m going to be comparing the workers with the traits I gave boxer People that were dependent with money and needed orders from the higher ranks to do their job. Without the orders, the workers wouldn’t know what to do to help the people. The workers are also very manipulative. We can trick them into doing things they don’t want to do by force, or maybe making them think its for the right cause. Workers are very loyal to their boss. As they want to get paid and they try to their best to get a raise. I don’t think I really agree that workers are inspiring in real life. But mostly ignored except for the leaders. But Boxer was one of the most famous animal in the farm. So I don’t know why the author decided to make Boxer such a likeable character in the farm. If I had to make the characteristics of Boxer, I feel like he’d be someone who was ignored, but tried his best anyway. Boxer is very dedicated in making the windmill and I think workers are also very dedicated into making their projects in real life. But I wouldn’t say workers aren’t smart in real life. They probably don’t think of life too positive or is innocent. They are very educated about how life works. The author might’ve been trying to show the readers that workers don’t get good education in the revolution because they had no money.
           In conclusion I think Boxer played a major role in the book and is a very crucial character in the story. He had traits that people always looked up to but ultimately lead to his doom.
Orwell, George. Animal Farm. New York: Harcourt, Brace, 1954. Print.

Wonders Written Rant January IBP

Today, I’m going to be talking and making a little rant on why people shouldn’t be treated as they are because of their looks. Many people say that you shouldn’t judge a book by its cover. But this is clearly the case in the book Wonder, written by Raquel J Palacio that is a realistic-fiction. In this book it shows judge someone for how they look and until they really know the person.

August, the main character has a very deformed face and went through many surgeries to fix it. He has tried his best but his face still looks hideous. He was bullied due to his deformed face and in the book we realize that August does not have any mental issues and because of his deformed face, he is treated like a monster and not treated equally and he knows he’ll have a more difficult life than others and I just think it’s unfair. He tries his best to act like the other kids, tries to change himself as much as he can to be like his friends. He tries his best to make his friends feel better and he goes through pain from all the surgeries and yet he is still treated like a freak and it is wrong. All of August’s friends know that August is a normal kid just like anyone else and is funny and that he should be treated just like anyone else. We know that August is made fun of as no one sits next to him, his friend was asked by the principal to befriend him, everyone whispers behind his back. Also, what’s up with people whispering, they’re so bad at it. You can always hear few words to make out the sentences. Its evident that August knows he’s being treated this way and it is hurting his feelings and we should stop. August’s friend Summer was nice enough to give August a chance and now they’re very good friends. They didn’t want to be born this way and shouldn’t be treated as a freak but more of a friend and should be nice to him at least once before judging. Imagine you were born that way, and all you saw were weird looks coming from the corner of their eyes, shaking their head. It’s a horrible feeling for everyone. To be staring at you and being infamous. August is the strongest person here as said “Now that I look back, I don’t know why I was so stressed about it all this time. Funny how sometimes you worry a lot about something and it turns out to be nothing.” He learned to deal with it and to feel natural with it and how optimistic he became throughout the book.

Basically, people like August should get a chance and should be treated equally and the book does a good job sending the message of someone in August’s position. Where they can feel sorry for the character. So in conclusion, people like August shouldn’t be treated unfairly because of his looks and should be treated equally.

p.254 Now that I look back, I don’t know why I was so stressed about it all this time. Funny how sometimes you worry a lot about something and it turns out to be nothing.

Palacio, R. J. Wonder. First edition. Alfred A. Knopf, 2012.

RBP Wonder August January Multimedia

Screen Shot 2016-01-18 at 8.41.46 PM

This is a mind map for the book “Wonder” which is a realistic fiction by Raquel J. Palacio. This is just a summary of the character August Pullman in the book “Wonder”. From my analysis from the exposition, August is a misunderstood, nervous, scared, adaptive, self-aware, resilient, shy kid. We can tell why I thought he was like this in the mind map. Click on the image for HD

Quotes that I used (Not All): P.22 One of the reasons I grew my hair long last year was that I like how my bangs cover my eyes: it helps me block out the things I don’t want to see.

P 10 Dude, you’re gonna have to talk

P. 35 I don’t want to go to school.

Palacio, R. J. Wonder. First edition. Alfred A. Knopf, 2012.

Robotics Final Summative

Final Robotics Summative


For my robotics I decided to make a lego claw machine for my final summative and it wasn’t that good of a project. This is my final robotics summative. [1]

Collaborative Process

For my collaborative process, I didn’t work with anyone and was a solo project, and I feel like if I had someone else work with me, I could’ve had a better chance of finishing this project because the planning was easy but the I had to build a lot which took up a lot of my time. So basically I don’t have anything to say for my collaborative process as I worked by myself.

Idea Development Process

In the beginning I was hoping to make a robotic hand that could hold anything but then I realized that was too difficult to make and then I decided to make a robotic claw like the ones you’d find from disneyland but then I realized that was quite easy so I decided to make it a little bit more challenging by making a lego claw machine. In the beginning I wanted to challenge myself and I decided to make a whole claw machine with cardboard too and a coin slot which you can use to use the machine, and a joystick but in the end all I ended up making was making the claw be able to move up down left right and have claw life up and down and I couldn’t even input the program in.

Technical Process

I first tried making my claw machine, I made it completely out of lego [1], then I realized that the claws and the motors couldn’t withstand the weight so I decided to make a part of it out of matrix and I needed some of the lego for the motor. Then I made the claw rope. I first tried a normal rope and it was hard to put all the string to on the lego piece and would slip off and I started making the rope with lego and it was quite successful. I basically made all the motors [2] and all I needed was the base. I started building the base to hold it up. I collected all the materials to build it and to sustain it and the next day they were all gone. So I went on to just use the straight metal parts instead and it could not sustain itself. Until this day, I always went on break and lunch to work on my project but I guess I got fed up and gave up with the project. So when I came back the next few days, the lego was broken because that was a weak point [3] and it was holding almost all of the structure falling apart. Then I was sort of stuck. There were no materials that I could use and I got these things in the photo and I tied them with a string onto the claw machine [4]. Once I was done with that I had 3 days left and I had to make sure that I finished the project I had to finish programming, wiring, programming for the matrix motors and I think it was just too much and I could complete it, but I just didn’t have enough time to make it work. The motors here were very wobbly and could’ve fallen very easily and I needed to improve and I sort of gave up and I’m currently writing this blog post.

1. All the parts that I made out of legos before I realized it wouldn’t work

Screen Shot 2015-11-28 at 7.58.07 PM Screen Shot 2015-11-28 at 7.57.58 PM Screen Shot 2015-11-28 at 7.57.52 PM Screen Shot 2015-11-28 at 7.57.38 PM


Screen Shot 2015-11-28 at 7.58.54 PMScreen Shot 2015-11-28 at 7.58.45 PM

3. The lego with the strain of the whole building

Screen Shot 2015-12-14 at 12.06.52 AM

4. This made the building much more stable

Screen Shot 2015-12-14 at 12.13.08 AM

Concerns or Celebrations

This project was almost full of concerns, that I made the whole thing out of lego and I had to make it all over again with matrix. Which took quite a bit of my time, my motor which had the lego claw machine is very fragile and still is to end of the day. I also lost all my materials when I put it in my lockers, I also had almost no materials. New materials came though on the day when I stopped working. The whole structure was very fragile. I didn’t have enough time too.

Look at images above.

Knowledge I Can Transfer

I honestly think that I was just unlucky with the materials part, but I think that I should prevent that from happening if I get the materials first and keep it hidden or I should’ve locked my locker. But the key was broken so I don’t think there was any point to it. Again I think that I should’ve been more prepared to this and planned more well and thought more about the errors that could’ve happened during this project.

Final Project

This was how my project looked like in the end of the project.