Search Header Logo
Week#12 Grade 4 Edit a python Library

Week#12 Grade 4 Edit a python Library

Assessment

Presentation

•

Computers

•

4th Grade

•

Hard

Created by

Maha Abd Al Aziz Zuaiter

FREE Resource

10 Slides • 0 Questions

1

Week#12 Grade 4 Edit a python Library

by Maha Abd Al Aziz Zuaiter

2

​Computer standards :-

​1A-AP-14: Debug (identify and fix) errors in an algorithm or program that includes sequences and simple loops.

media
media

3

media

​Curriculum Link :-

​

​Math : link it with math when turtle Robot moves certain number of steps .

​

4

​Learning objectives :-

​Analyze python codes and Edit them

​Discover code bugs [errors] and Debug [fix] them .

media
media

5

​Think in pairs about how to edit a code ?

​

media

6

​Activity#1: Edit te title of the window

​Open a Python Program in IDLE and Rename the File

​⮚Open IDLE (Python)

⮚From the File menu, select Open

Go to the Turtle folder. ( Ask your teacher where this is located.)

⮚Select edit. Click open

​

⮚From the File menu, select Save As. Go to the place where you save your work.

⮚Add student name to the file name. Click Save

⮚Look at the first line of code. It imports the Turtle library of commands :

 

7

​

​Edit the Title of the Window

⮚Find the code that has the title

      from turtle import* 

​      # set the background 

​      title("Edit a python Script")

​⮚From the Run menu, select Run Module.

⮚Look at the top of the canvas. It has the title :

​      Edit a python script 

​

⮚Close the canvas and Python Shell.

​

8

​Add your name to the title :

​title(" Edit a python script by student Name")

​⮚From the File menu, select Save or press CTRL + S.

⮚From  the Run menu, select Run Module.

⮚Look at the top of the canvas. It has the edited title :

 

​ Edit a python script by student name

⮚Close the canvas and python Shell.                             

9

​Set the Screen Size and Background Col

​⮚The screen size sets the width and height of the canvas. Change the canvas size :

​ screensize(1000,1000)

⮚ From the File menu, select Save or press CTRL + S.

⮚From the Run menu, select Run Module.

⮚Drag the scroll bars to see more of the window

​⮚Close the canvas and Python Shell.

​

10

​set the background color using a color name. Pick a color from the list below:

​bgcolor("honeydew")

⮚Apply your skills  to view the changes

Change the Speed, Pen size, and Shape of the Turtle

6.The  speed that the Turtle moves can be changed. Try it !

​

​

7. The pen size can be set. A low value makes a thin line. A higher value makes a thick line. Change the pen size to a number between 1-10​

pattern-tertiary
Week#12 Grade 4 Edit a python Library

by Maha Abd Al Aziz Zuaiter

Show answer

Auto Play

Slide 1 / 10

SLIDE