python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) explanation this command sets the...

72
Python

Upload: others

Post on 27-Sep-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Python

Page 2: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Syntax

Page 3: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 4: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 5: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Turtle Graphics

Page 6: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 7: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 8: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Python colour codeMaking decisions

Page 9: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 10: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 11: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 12: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

See trinket SAMPLE CODEcircles……….See TURTLE TUTORIALS FOR MORE!!!

Page 13: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Bird box

Page 14: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

loops

Page 15: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

snowflake

Page 16: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

See trinket for more code( rainbow circle)

Page 17: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Pygame Need to pay for in trinket.. Can use but not save

Page 18: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 19: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 20: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 21: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Variables

Page 22: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 23: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

input

Page 24: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 25: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 26: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 27: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 28: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 29: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

error

Page 30: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 31: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 32: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 33: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 34: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 35: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 36: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 37: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 38: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

!! See next slide!!

Page 39: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 40: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 41: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 42: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 43: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 44: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

For loop

Page 45: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Functions

Page 46: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Call

Page 47: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 48: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 49: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 50: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

PYTHON: RESEARCH DOC…. W3SCHOOLS

•PRINCIPLES

Page 51: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

If statements else

Page 52: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 53: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

While loop Forever loop

Page 54: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

lists

Page 55: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Definition and call

Page 56: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 57: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 58: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

LIBRARIES

Page 59: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

LIBRARY MODULES

Page 60: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 61: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 62: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

COLOUR & CO-ORDINATES

Page 63: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 64: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 65: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 66: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 67: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values
Page 68: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

•GAMES

Page 69: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Turtle in space

Page 70: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

Ghost game

Page 71: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

SILLY SENTENCES

Page 72: Python · 1/30/2020  · hideturtle ( ) showturtle ( ) color (c) Explanation This command sets the appearance of the turtle object to be whatever shape is specified by s. Valid values

• See code posted in Office 365

• Hangman

• Battleship