Week 2 – Oct 25th

I will be adding problems over the next few days. I want the class to start working on little bits of code in scratch that will be related to the 3 door game we are going to code.

Feel free to email me with questions and I can probably get back to you by the following morning if not sooner.

Scratch Problems:

Problem 1: In Scratch, make a list with elements A,B,C . Then imagine that a player picked door A and the prize was behind door B. So which door gets opened? Now remove “A” from the list and remove “B” from the list.  Whats left?

Problem 2. In Scratch make a list with elements A,B,C . Then imagine that a player picked door A and the prize was behind door A. Now which door should be opened? Is there a choice? So remove element “A'” from the list.  What do you think is the next line of code?

Python Problems:

I made a post about using an online interpreter for python. Its pretty simple and will allow everyone to run code without dealing with installing etc. So once you get code to work save your code in another file, email or just write down on piece of paper.

Problem 1:

Go to link  http://www.compileonline.com/execute_python_online.php

In the upper right hand corner is an arrow labeled execute script. Click on this arrow. Do you see where it printed out “Hello World”

Congratulations,  You just ran your first python script!!!!!!! (If there were a fancy Nancy book on coding in Python, Nancy would explain that a script is just a fancy word for a a program or bit of code that you write in python)

Problem 2: Type in the code below

x = 2

if ( x > 9):

    print “yes”


    print  “no”

Then run the script. What happened?

Now change the first line to:


Run the script. What happened?

Can you explain what is going on?







Sharing Work and emailing me (Michael)

Been having some issues finding students work when it is published. If anyone has any ideas please share. So far what is working is for students to publish and then send me the url to the project. That looks something like the below:


The best email address to use for me is michael@cqtutoring.com

I hope everyone is having fun working on the problems that were posted.


Week 1 – October 18

Problem Set 1

Work Hard. Work together. Its all about learning and having fun!!!!!!
Big Hint: If you see that code is repeated then …..?
Problem 1
Draw an isosceles triangle. (that is a triangle with two sides that are equal).  Depending on the amount of geometry you know will probably influence how you try to do this.
Problem 2
Using as few lines of code as possible have a sprite write the below
Problem 3
Using as few lines of code as possible create a 3 by 3 pattern of squares.Note I am using the letter x below but I want you to use the square like we used in class.
x x x
x x x
x x x
Problem 4
Part of programing is learning how to figure out things on your own. See if you can learn about having different costumes for the sprite then do problem 3 but have the colors of the squares alternate from red to blue. (note I am using x (red) and o (blue) below but you should use the squares like in class).
x o x
o x o
x o x