Monday-Wednesday, December 16-18
Today in science: With either a laptop or a school Chromebook, students created a free account with Trinket.io as a way of engaging in the annual TASIS Science programme’s “Week of Code.”
Below are some of the main steps we followed in Monday’s science class while making our first program (aka., trinket), but Dr. Merritt has put some additional (useful!) ‘pieces’ of code in the Notes Portal.
- Create a free account with an email and password.
- Go to ‘Home’ button
- Create a new Trinket
- Before working any further, give your trinket a title/name and save it
- Collect ‘materials’ pen, pencil, etc.
- Write the first line of code…
- Import turtle
- turtle.left (90)
- Go back to line 2 and insert a new line of code: t=turtle.Turtle()
- Now you can replace “turtle” with “t”…save time, use shorthand
- Can you make a complete square with your trinket/program?
Below are some of the steps we followed in Tuesday’s science class…
- Go back to line 3 and insert a new line of code: t.color(“red”)
- Go back to line 4 and insert a new line of code: t.pensize(10) or t.pensize(50)
- Now change the color of each of the four lines…
- We’ve done a square, but you can do a circle by using other code…
- t.circle(80) The number in the parentheses is the circle diameter.
- What if I want to fill the circle with color?
- All of these ‘pieces’ of code are on the sheet in the packet I’ve given you in your packets.
- Can you turn your square into a house? Can you write your initial(s)? OK, go ahead and play on your own…
- Here’s a ‘piece’ of code for a semi-circle: t.circle(1oo,180) The first number in the parentheses before the comma is the circle diameter, while the second number is the amount of the circle turtle will draw (180 = 180 degrees = half of a circle).
Below are some of the steps we followed in Wednesday’s science class…
Thursday-Friday, December 19-20 (No school)
Today in science: —
Homework: There is no science homework over the Winter Vacation! 🙂