python at cypress woods. about cy-woods northwest of houston roughly 3,500 students part of cy-fair...
TRANSCRIPT
![Page 1: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/1.jpg)
Python at Cypress Woods
![Page 2: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/2.jpg)
About Cy-Woods
• Northwest of Houston• Roughly 3,500 students• Part of Cy-Fair ISD with 100,000+ students
Cypress Woods High School
![Page 3: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/3.jpg)
Computer Science at Cy-Woods
• 450 students• 4 levels of classes• 4 teachers • 330 students in our intro class
Cypress Woods High School
![Page 4: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/4.jpg)
Why Python?
• Our class isn’t about Java, or Alice, or Scratch, or Jeroo, or Python
• It’s about solving problems– And any language can be used for that
• Python allows us to work with problems without as much overhead
Cypress Woods High School
![Page 5: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/5.jpg)
Why Python?
• English-y• Less focus on syntax• Still lets us target the AP topic list• Cross platform• Indentation
Cypress Woods High School
![Page 6: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/6.jpg)
Why not Java?
• We can teach basics first• … which gets us to problem solving faster
Cypress Woods High School
![Page 7: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/7.jpg)
Basics First
public class MyClass {int someVariable;public static void main(String[] args) {
// Do something cool}
}
Cypress Woods High School
![Page 8: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/8.jpg)
Basics First
# Do something cool
Cypress Woods High School
![Page 9: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/9.jpg)
Still have OOP
class MyClass(object):def __init__(self):
#constructordef printAList(self, aList):
for x in aList:print x
Cypress Woods High School
![Page 10: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/10.jpg)
Leading up to Python
• Start in the 2nd semester• 1st semester– Scratch– Alice– CS Unplugged
Cypress Woods High School
![Page 11: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/11.jpg)
Leading up to Python - Jeroo
Cypress Woods High School
![Page 12: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/12.jpg)
Leading up to Python - Jeroo
Cypress Woods High School
![Page 13: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/13.jpg)
Starting with “real” Python
Cypress Woods High School
![Page 14: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/14.jpg)
Pygame – Making Pictures
Cypress Woods High School
![Page 15: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/15.jpg)
Drawingspygame.draw.rect(……)pygame.draw.circle(……)pygame.draw.line(……)
![Page 16: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/16.jpg)
Cypress Woods High School
Methods
def drawShape(target, x, y):pygame.draw.circle(target,(0,0,0),
(x,y),5)
![Page 17: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/17.jpg)
Animation
while True:xPosition = xPosition + xSpeedyPosition = yPosition + ySpeed
if xPosition >= 800 or xPosition <= 0:xSpeed = xSpeed * -1
if yPosition >= 600 or yPosition <= 0:ySpeed = ySpeed * -1
drawShape(screen, xPosition, yPosition)
![Page 18: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/18.jpg)
Cypress Woods High School
Classes
![Page 19: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/19.jpg)
Cypress Woods High School
Multiple Classes
![Page 20: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/20.jpg)
Cypress Woods High School
Lists & Loops
![Page 21: Python at Cypress Woods. About Cy-Woods Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students Cypress Woods High School](https://reader036.vdocuments.us/reader036/viewer/2022062408/56649e905503460f94b94e78/html5/thumbnails/21.jpg)
Cypress Woods High School
Making a Game