I2P-Krish_Galani-Day#3(June 21)

1. Screenshots of your achieved daily units from Codecademy (PYTHON and JAVASCRIPT/GOOGLESCRIPT)



I completed Units 7-8 in Python, (Lists&Functions and Loops), and also did Units 5-7 in JavaScript (Control Flow, Data Structures, and Objects) Including the Address Book Challenge in Javascript.


2. In depth reflection – what did you learn whilst completing the units on Codecademy and any challenges you faced. (Screenshots or copy/paste code here to help describe your learning process)

I cannot believe the amount of things I’ve learned going through these past couple of units in JavaScript and Python. I feel as though everything was calm, smooth going through the first few units, then all of a sudden we get front-loaded with a bunch of units filled with a lot of information. I really wanted to make sure that I fully understood these concepts and would not forget the concepts I learned as I went by them, which is why it took me two days to get past this learning point/blog. I definitely feel strong in certain topics like Objects in JavaScript, and conditionals,  functions, (lists&functions) especially. While there were some sticky topics I pended over for a significant amount of time to gain a better understanding, such as Battleship, using functions such as (zip),enumerate(),(in), (for loops in python), and the insanely hard lesson for me in Unit 8 (Python): ‘Practice Makes Perfect’. I feel so accomplished and confident in all the new skills I have, and feel that taking a day to reinforce all my previous knowledge really benefited me, especially in allowed me to make such a complex Python Calendar. I love the nature of coding that JavaScript provides, as I still prefer the format of coding of JavaScript over Python, even though there were parts that confused me in writing methods, and custom constructors in JavaScript. Here are some examples of problems I had trouble with:

97a6f676f2af28919a7750c67a33980c (<–Referring to Left) I was confused over how I could search for a name specifically, and kept trying a bunch of nonsense, until I found out you can access firstnames by going through (friends) with a for loop, and using .firstName to look specifically at the firstName.

battleship (<– Referring to the Left) Moving on to Battleship, (my favorite program to build so far besides the Calendar). I thought it was really cool that you could display an actual 2d board with code, however, I didn’t always code it correctly on first try, it did take some trial and errors to make everything work in harmony. For example, I was unsure of how to implement 4 turns in the game, showing my insecurity of for loops in python at that time. But after testing for a bit I found out for turn in range(4) meant for every number up to 4, carry out the conditions, giving it 4 times to be repeated, at (1,2,3,4) because at the end I did turn +1, which makes it so that there isn’t a turn(0). Next up, I had immense trouble with Unit 8’s ‘Practice Makes Perfect’. Next up, I did feel that the ‘Practice Makes Perfect’ Unit 8 Lesson required a lot of code sense, and how to enact general logic for statements into actual code, which I wasn’t so strong in doing at the time, because I was used to following instructions. One of the reasons why I spent a day reinforcing my understandings is because of that, to generate a sense of code logic. (Referring to the Right –>)antifact These kinds of problems really challenged my creativity and application of previous skills. Like I said earlier, I lacked logic to code these functions, and needed assistance from peers to hint at potential methods in making them. In the first problem I failed to remember that (every) meant every letter in text, and also didn’t remember to use (not in) when checking something, this led me to experiment coding non-resulting functions, until I got assistance. The same effect rippled for the coding of a factorial function, I couldn’t come up with the idea of using range(x), and instead did multiplication tables and many extraordinary coding methods that were way off from deducing the factorial of a number, eventually I got help and learned to use a repeating(product) process based off the items in range(x), which outputs factorial. Overall these were the types of problems I struggled with, for loops, code logic, method functions, custom constructors, etc, but in the end taking a day to review it all has removed any doubt I have in coding these learning targets, and made me more confident in my skills than ever.

3. Reflection of your daily challenge, copy and paste your code, add a series of screenshots to prove this. (Tasks to be completed can be found in Course Description I2P summer 2017)

Javascript: Building an Address Book

5d183c2b0dc1542c05e10499afecf299 I found the contacts list to be fairly easy, for the only place I got confused at was the last part at (function add). I was confused of how to append a new contact to the end, soon realizing that if you attach a object to the end most index of an array(contacts.length), its the same as appending.

Python: Calendar Challenge

Screen Shot 2017-06-23 at 7.05.16 am

I cannot believe I actually got this super complex program to work, I’m seriously astonished that I managed to pass this challenge, for it was super tough, and chunked a lot of my day time. When first approaching this, I spend at least an hour brainstorming the best possible way to approach a calendar. “Should I make a list inside an array?”, I asked myself many questions to determine which approach would work best with a calendar. Finally, I came to the conclusion that an array with keys as the dates, and lists are their value (content) would be the smartest way to store an event. When starting this code, I had to create the events dictionary to hold the events, then I used a while statement to prevent the program from ending unless specified by the user. After that I created three scenarios to a question of what to do, if the user typed view, it would print out each event in the dictionary events, (I used a for loop to call all the events). If the user types add, they will be prompted with a question of the content and date of their new event, then whether or not the date the user gave is new or not, it will either store it inside an existing date, or make a new event(new date). Finally it will print calendar with the new information. If the user responds with update, and the date of event that they inputted is listed in events{}, they will be prompted to select the content in that date in which they want to change, then what to change it with. When the user responds with delete,  it works the same way finding what to delete, as replace does, except in the end instead of replacing the content, you can delete it. Finally, I made it so that at the end of every action, the user would be prompted to if they want to break the loop or not, if they say N, they can keep doing procedures, if they say Y , the loop will break. If the user doesn’t type a valid keyword, the else statement, will tell them to. Overall this exercise really brought back a lot of forgotten skills for me, and is definitely the most complex program I have ever made! I really have to give my thanks to all my peers who helped me to debug and ‘The Coding Den’ group to help me get passed stuck-ups.

4. Other resources you came across in this learning process?

I used this to help inspire how to write a factorial function when I got stumped.

I also used the above to help me and reinforce understanding when I got stumped on is_prime, reversed function, and more exercises for string function challenges in ‘Practice Makes Perfect’ (Unit 8 Python).

Also I got real help from people in ‘The Coding Den’ group on an app called  ‘Discord’

Thanks to peers for the assistance 🙂

I2P-Krish_Galani-Day#2(June 20)





1. Screenshots of your achieved daily units from Codecademy (PYTHON and JAVASCRIPT/GOOGLESCRIPT)

26eed30a061f7c88c408cf827a970df9 251588357a0d9f54fc36896b3b58d1f4


I finally managed to accomplish four very challenging units. Functions(Unit 4), Lists &Dictionaries(Unit 5)Hardest for me) in Python and Units 3(For Loops) and 4 (While Loops) in JavaScript confused me often with for loops in python.

2. In depth reflection – what did you learn whilst completing the units on Codecademy and any challenges you faced. (Screenshots or copy/paste code here to help describe your learning process)

Man! What a frustrating Tuesday it has been, seriously. I feel like I’ve not only have I developed my coding skills drastically, but taught myself how to persevere even through the worst of times coding. Today I would spend several hours on a single Unit, mainly because I really wanted to get the point out of what I was coding, and wanted to prevent skipping concepts without understanding them completely. Most of Tuesday consisted of sitting at Home trying to debug or remember correct notation for (lists/dictionary/function involvement), for I remember there were exercises that I was so confused over(Which I will talk about later), and it took me 50 minutes maximum to resolve some issues. Thankfully the Quiz due date was altered, for there would have been no way I could complete it on time. When ever my parents came into my room today, they would always be surprised at the amount of time that I put into trying to master these concepts, and kept encouraging me all the way through. It was overall quite a stressful day for me pushing through these Units(Mainly Python), but the relief that came from it is indescribable. Until now, some notation is still a bit foggy to me , but I have a good solid understanding, and can recognize what to use when I code functions, loops(things I learned).  I guess taking on JavaScript first was not very wise, for I often got confused with For loops, and function notation in Python later on. I spent at least double the amount of time doing Python, compared to JavaScript. (Side Note: I feel when you look at code for long enough your mind can go blank and you forget what you’re learning even though you’re coding it). I felt JavaScript was easier to complete ironically because my mind was fresh, then as I moved onto Python, I starting mixing functions and notations from the languages, or just not understanding what some things were like 54c77e97e1a6f6b4c4e879773159f52d for a while I didn’t understand what item resembled and did in the loop for lists, until I had watched a video(linked at bottom). Overall it was a very confusing and frustrating experience. Here is The main stuck-up I had in JavaScript:  0a721451fe3b29232bae7e9f99471727. When at first approaching this situation, I couldn’t brainstorm a method to analyze the code. This caused me to follow the steps not knowing what each line did, especially ( if (text[i] === myName[0]) { ) and for(var j=i;(j<myName.length+i);j++), these two lines really made me look at individual aspects and decode what that would do, eventually realizing it looks for a ‘K’ in the text, then going in a loop entering the next 4 characters of my name, until the loop is satisfied with the length of myName condition. I found some parts fairly easy in python, like Build-In Functions, and Math Imports, but here are some of The main stuck-ups I had in Python: The Unit that chunked most of my time overall , was the last tedious python unit. Lists, and Dictionaries. I not only mixed up with early concepts such as replacing a word from an index with a string 2037f558f8337453b3c2774d815656a3 <— (Referencing to the image)  with later more complicated integrations 14440d4a5105ed785528dc46b28fa497 (<—Reference) Like key and value(I can differentiate them now), not understanding Line 15 did. It kept spiraling on as there were so many new terms introduced like .abs(), .index(), and I tried to get my mind clear as I was going through the Units. Until I got to the last hardest exercise (A Day At The Supermarket)  : At this point I had to go back and review previous exercises because I couldn’t even write what line 16-17 says (Reference –>) a4c2921bbf4cafec101e64edaecfb727         for loop, after reviewing for a while, I learned that you could loop a two functions they have the same keys, which in this case they do, so it’s printing in order, the fruits, then the prices called by prices[key], then prints the stock after that called by stock[key]. The %s I already knew previously.  Finally once I understood that, I still had a hard time with this final order (Reference —->) spc I didn’t know how to involve for loops [item] on line 20, with the (food) argument of the function, also I was confused with how to add items to total. After revisiting stack-overflow, and getting help, I was able to write out the complete code. Now I know the (food) argument resembles the food /list you want to compute, in my case I wanted to call a shopping_list as I regarded at line 25, and item means for every item listed in the function, do these conditions, acting as a placeholder.  Also total+=prices[item] works because after checking if there is stock, it essentially do total = total + prices[item], therefore meaning to add the price of the [item] (listed inside the dictionary) to the total. Overall now I have a much better and stronger feeling/understanding of the Units 3-4 in JavaScript , and 4-5 in Python.




3. Reflection of your daily challenge, copy and paste your code, add a series of screenshots to prove this. (Tasks to be completed can be found in Course Description I2P summer 2017)

Dice Challenge : 

i2p day 2 dice challenge

When creating a dice, you have to import a random library in order to assure a fair roll. From that the random library, you can use the randint() predefined function to specify your dice range, I created 2 dice as necessary. Then I took the sum of both dices, and converted to string so I wouldn’t get a concatenation error. After that its just comparing the users input with the dice’s result using a conditional statement.

It worked!




4. Other resources you came across in this learning process?

I have to give credit to my peers and family for pushing me through the moments where I just felt like giving up.



I2P-Krish_Galani-Day#1 (June 19)

1. Screenshots of your achieved daily units from Codecademy (PYTHON and JAVASCRIPT/GOOGLESCRIPT)
bc7df4e435457b6958d80b8af5ca3af2 9cab6635b3059b742d5951691d9710e5
Throughout this first week, I’ve learned many concepts, some that are challenging, and some that I can relate with from my precedent knowledge of Java and Python. I have completed Units 1-3 on Python as you can see above, and Units 1-2 in Javascript/GoogleScript also presented above.
2. In depth reflection – what did you learn whilst completing the units on Codecademy and any challenges you faced. (Screenshots or copy/paste code here to help describe your learning process)
What a challenging first week it has been. Walking in to our first class, I felt a little unsure of my capabilities in this class, and found certain concepts in python hard to wrap my mind around. However, with relentless effort, and time put into getting help from peers, trying various methods and approaches at making a program work. I finally got the ‘jist’ of coding, and I’m much more confident on my outlook of how coding works, applications that are run by coding languages, and why it works. In retrospect, I felt JavaScript was a lot harder, but much more rewarding and fun to use, therefore I will be talking about it first. The first concepts of JavaScript were simple, and taught me the basic operations of the language, I learned about Math operations, such as modulo, variables, .length, method of output ( console.log() ), booleans, datatypes, confirm and prompt (user interface), finally conditional statements. A lot of what I learned were the fundamentals, as such in any other language. Then as I move on to Code Your Own Adventure, I have to use my accumulative skill to learn the basics of creating a game and getting feedback. Throughout making this I had to input various dialogues enveloped on conditional statements (if/else), and use variables, I found this fairly easy to do, as I already had a basic understanding of the concepts from learning python at first. Unit 2(Functions) was where I would often get stuck on little things, and problems. The whole unit consisted of understanding how Functions work, and how you can use them to your benefit. The main reason of using functions is to save time in your code, or if there is an variable constantly changing, that you don’t want to change every single time that it changes. You can just call the function, by using [ functionName(xxx);]. I found this pretty neat, and a useful aspect of big programs, or currencies. The first problem that gave me a challenge was the (D.R.Y Dont Repeat Yourself) exercise , my answer here —>  11b45df9fc1af05fb0266d9f79449fd3 , because I couldn’t understand what the parameters meant, and what the resemblance of price was. Soon I realized it was just a placeholder  representing the value of your answer. In this one, the price of oranges, which I imputed as 5. After completing this exercise, I moved on to learning about the integration of conditional statements with functions. This is where I had to learn about global/local variables, which was tricky for me. Here is my  final work the global/local exercise –> 944579fde52eb682f14391c91f85af07 I couldn’t wrap my mind around the concept that a global variable could be called into a local function, but a local variable can’t be called into another function. Eventually, I understood that global meant to be known as a public statement, and local meant a statement only known inside a function. As variables declared locally , can only be accessed locally I soon came to understand. Overall functions was my favorite unit, and gave me a sense of accomplishment, that I could tackle these big puzzles you could say. Python was the first language I dug into this week, and not the most challenging, as it felt more like a speed-run to get through it all. However, what I love about python is that it’s super easy to understand, and gives an easy format to code in, along with simple key terms. While learning Python Syntax, I came to understand how to store data in variables, utilize white-space, comment, and use mathematical operations, which were were essential for further progressing into Unit 2, where I learned about Strings. One thing I found cool was Access By Index, although I got a bit confused with the differentiation in JavaScript and Python of the numerical coding of letters in a string, I got used to it. As I progressed onto String Methods, I found it fairly easy to comprehend Dot Notation, and that its made for strings, and the type difference between a integer and a string, and why you have to use str[] to convert an int. Moving on to concatenation and printing methods, I found it easier to fix sentences and codes together using %s. Unit 3(Conditionals and Control Flow) totally messed me up, I got so confused over the True and False problems in the Boolean Operator section, and after a while remembered the order of operations for (Not, and , or), which made it easier for me to sort of equalize out the statements to one Boolean. Learning about conditionals however was just a review, for I previously have done alot of (if/elif/else) statements in Java. Overall I had a lot of fun coding this week, and am looking forward to the challenges ahead!
3. Reflection of your daily challenge, copy and paste your code, add a series of screenshots to prove this. (Tasks to be completed can be found in Course Description I2P summer 2017)
The Rock Paper Scissors
This was probably the most challenging program that I’ve built, I didn’t understand how to get a fair 33% from the range Math.random() offers, which is 0 – 1, but after being taught by a peer that a computer reads the code from top to bottom, I soon realized I could easily setup a situation where I could divide the 1/3, and write a conditional statements of each third of 1, like I did at line 4-8, so that when the computer reads it, it will read the lowest number range, 0-0.33, to the highest, making it a fair chance. After that I could setup the rest, basically conditionals based on what the computer will get.
Shape Challenge : 
This is based on the users input, of if he/she wants to calculate a circle or triangle, and the one she/he specifies will be calculated by the formulas of Area of a Triangle and Circle.
4. Other resources you came across in this learning process?

I only used stackoverflow.com

and asked peers for assistance.



Act 1 Scene 1: 3 Witches just rose up and when they’ll meet again to make their predictions. Macbeth is Thane of Glamis as his title, also since he performed well he could be called King Duncan and Thane of Cawder.

Act 1 Scene 2: King Duncan has told that Macbeth was brave person and Macbeth and Banquo fought very well , they beat the Thane of Cawdor and rewarded Macbeth only.

Act 1 Scene 3: Macbeth and his partner we’re walking and they ran into the three witches who predicted their futures and that Macbeth would be the Thane of Cawdor for his bravery and it turned out that they predicted the future. 💡

Act 1 Scene 4: Malcolm Donalbain becomes the Prince of Cumberland and Macbeth is shocked.

Act 1 Scene 5: Lady Macbeth is very happy to see the letter of Macbeth becoming the Throne of Cawdor, and wants to become queen, so they talk to kill King Duncan and Lady Macbeth says to leave it to her. She called the evil spirits.

Act 1 Scene 6: King Duncan comes to the castle with his guests, praises Macbeth and says the Air is nice when really the castle and rotten and icky. Lady Macbeth is the first one to greet them.

Act 1 Scene 7: Macbeth starts be hesitant towards killing King Duncan, and his wife comes over to see whats happening. After that Lady Macbeth convinces Macbeth to carry on with the kill , calling him a “coward” and saying “you don’t love me.” Macbeth is now proceeding with the plan to kill King Duncan.

Act 2 Scene: 1 Banquo is having trouble sleeping and remembers the three witches and what they said, meanwhile Macbeth is having trouble carrying out the kill but eventually when he hears the bell he goes. Macbeth is talking to himself(soliloque).

Act 2 Scene: 2 Macbeth comes back after committing the murder of Duncan and his son and is shocked in emotions, his wife plants the daggers and drips blood on the sleeping drunk guards to make them look guilty.

Act 2 Scene: 3 The two royal soldiers come in and ring the bell, the door tender goes and opens it and when the 1st royal soldier enters he greets Macbeth and enters Duncan’s bedroom. He found out Duncan was dead and told everyone, the guards were blamed as suspects. Duncan’s two sons ran away to England and one to Ireland.

Act 2 Scene: 4 Macbeth gets away with the murder and they find out that the two sons of King Duncan fled away. Also Macbeth is the new King.

Act 3 Scene: 1 Macbeth thinks that Banquo knows what happened and the only one who knows about the three witches so he asks his guards to kill Banquo and his son.

Act 3 Scene: 2 Macbeth and Lady Macbeth talk about finishing off the plan. Macbeth is embracing the evilness more.

Act 3 Scene: 3 Macbeth sends another guy that he completely trusts to make sure Banquo and his son are killed, then to kill the other two people. It happened and the one man Macbeth sent remains and comes back. Banquos son flees.

Act 3 Scene: 4 Macbeth is having a feast with his palace guards and soldiers, and he starts seeing the ghost of Banquo. Everyone is shocked on what he is seeing and if he’s hallucinating, Macbeth and Lady Macbeth then go to sleep while the soldiers are excused.

Act 3 Scene: 5 Macbeth spoke to the three witches and they told him to be wary of Macduff and not be worried of any man who was born out of a woman.

Act 3 Scene: 6 Macbeth spoke to two people and asked them if they saw the weird sisters. They said no, but had suspicions that Macbeth killed Duncan and were happy that Macduff was building an army.

Act 4 Scene:1 Nothing

Act 4 Scene: 2 Macduff’s wife’s son and Macduffs wife gets killed by Macbeth’s soldiers. Macduffs wife calls her husband a traitor.

Act 4 Scene: 3 Macduff is tested for he’s loyalty and passes, then he receives the information that his wife and son died and goes to get revenge on Macbeth.

Act 5 Scene: 1 Lady Macbeth hallucinates or is in a mental state where she is rein acting the killing of King Duncan Scene. The lady of the castle calls a doctor to see whats happened to her and he said only God could fix it.

Act 5 Scene: 2 Scottish waiting for the English to arrive, and the English find out Macbeth is preparing for the attack.

Act 5 Scene: 3 Macbeth is in his war-room getting ready for the battle and is very confident from what the witches said to him, the doctor said that Lady Macbeth cannot be cured and she’ll have to cure herself because she’s mental. The doctor fled from frustration.

Act 5 Scene: 4 Malcolm uses the tree bank as a camo to get near the castle.

Act 5 Scene 5: Macbeth’s wife dies and hears from a messager that the woods are moving nearer and he heard this from the witches. Slapped the messager in rage and would rather die in honor.

Act 5 Scene 6: Macduff stated the trumpets and waged war.

Act 5 Scene 7: Killed a young soldier named Cieward.

Act 5 Scene 8: Macbeth continues to fight and boasts about his immortality, also he dies by Macduff who slayed him, the other troops came in later and crowned him King of Scottland.

Visual Literacy

EHIC Video Rubric With Peer Assessing Click: HERE!

1’st Frame Analysis on Macbeth Click: HERE!

Visual Literacy Frame Analysis Summative Click:  HERE!

Partner Frame Analysis Practice Click: HERE!

Oral Presentation on Macbeth&Paragraph Click: HERE!

Oral Presentation Rubric, Reading Assessment and Work Habits Click: HERE!

Reflection on the Prejudice Unit

Task: Write a blog post on your hkis wordpress site reflecting on the first four lessons of the unit and on your classmates’ presentations. What did you learn about identity, stereotypes, prejudice, and racism? In what ways did your ideas change from the initial lesson when we created word webs on the white boards?
Make sure that your reflection responds to the following questions.
How does race shape the way we see ourselves and others?
To what extent do our ideas about race influence the choices we make?

Throughout the past unit I feel like I’ve learned a lot about stereotypes, biasm, racism and identity. I’ve experienced this through presentations of people and now I know for sure that I have a greater understanding of prejudice. I learned that identity is what shapes you and how you react as a person based on your background. Prejudice is like a stereotype but more straight-forward and situational. Racism is being mean against one tribe or religion.

Rohrs Science Questions on PBL


1. What are you going to build (8th grade)?

I want to build an Automatic Door system that turns on lights

2. Why have you decided to build this object (energy transfer system) a working model (8th grade)?

3. What materials are you going to need to complete your build (8th grade)?

An automatic door because it seems cool to learn the circuits

So that I could understand how doors can turn on lights and the behind the scene action.

Cardboard, Tape,Motors, Wiring, Plastic Tubes etc.

Government Unit

How do you feel you did on the Government Unit? (Includes PSA and Tests)
I feel like I did ok through out but, I struggled during the beginning of the TCI Chapter tests and got better taking tests. Except for a test that I got which was the last Unit test where I know where I went wrong. I did well on my PSA and could make the video entertaining.

What would you do differently next time?
I would definitely study using my best ways more, because usually I’m studying but not actively. I will spend a quality 3 hours a day for the 3 days before the test making sure that I’m prepared and know everything I need to know. This doesn’t mean that I won’t study elsewhere, it’s just that ill study more in those days incase I forget.

What study strategies worked best for you?
Auditory and Word Enhancement strategies work. If I’m on the go I like to listen to myself studying and it just gets in my head. Also if someone tests me on it it helps drastically.
What study strategies didn’t work?

Reading from the text and taking basic notes doesn’t help at all, also taking Cornell notes.

Next time there is a test, how will you prepare?
I will do my plan as I said in the 2nd question and also ask my mom to test me. The days before the 3 days before the test I will use auditory strategies.

Occupy HK


Students blast govt over planned talks


The end of trust? Hong Kong sees police force in a new light: CNN News

Hong Kong protests: CY Leung urges crowds to leave: BBC News

Facts about Occupy HK:

Currently right now all of this is happening because of the government and their Chief Executed CY Leung who the protesters want to resign. Their are also pro-democracy protestors who have an urge to stop the protestors because they want theirs streets back for jobs and banks. The protestors are fighting for democracy and student education. The protest group is run my student leaders and theres a majority of students in it. The protestors did something that your not allowed usually to do in china and especially Beijing because you would get arrested. The police respond with pepper spray and tear gas. Which is violence.

My opinion about Ocuppy HK:

I think that the protestors should win this debate/fight because my opinion is that democracy should be allowed and I don’t like communism because it can lead to govt problems like this. Bad student resources and fights. Even though its a low chance they will get their way it seems reasonable that we should not always be ruled.

What I’m confused on and want to learn:

I want to learn why the government and CY Leung are using violence and why don’t they just discuss and let people have democracy for once. The bit that I’m a little confused about is what people are really arguing about as a main idea or both. Democracy or what kind of school education problems. This what I’m confused on and that I want to learn about more.