python at cypress woods
DESCRIPTION
Python at Cypress Woods. About Cy-Woods. Northwest of Houston Roughly 3,500 students Part of Cy-Fair ISD with 100,000+ students. Computer Science at Cy-Woods. 450 students 4 levels of classes 4 teachers 330 students in our intro class. Why Python?. - PowerPoint PPT PresentationTRANSCRIPT
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
Computer Science at Cy-Woods
• 450 students• 4 levels of classes• 4 teachers • 330 students in our intro class
Cypress Woods High School
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
Why Python?
• English-y• Less focus on syntax• Still lets us target the AP topic list• Cross platform• Indentation
Cypress Woods High School
Why not Java?
• We can teach basics first• … which gets us to problem solving faster
Cypress Woods High School
Basics Firstpublic class MyClass {int someVariable;public static void main(String[] args) {
// Do something cool}
}
Cypress Woods High School
Basics First# Do something cool
Cypress Woods High School
Still have OOPclass MyClass(object):def __init__(self):
#constructordef printAList(self, aList):
for x in aList:print x
Cypress Woods High School
Leading up to Python
• Start in the 2nd semester• 1st semester– Scratch– Alice– CS Unplugged
Cypress Woods High School
Leading up to Python - Jeroo
Cypress Woods High School
Leading up to Python - Jeroo
Cypress Woods High School
Starting with “real” Python
Cypress Woods High School
Pygame – Making Pictures
Cypress Woods High School
Drawingspygame.draw.rect(……)pygame.draw.circle(……)pygame.draw.line(……)
Cypress Woods High School
Methods
def drawShape(target, x, y):pygame.draw.circle(target,(0,0,0),
(x,y),5)
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)
Cypress Woods High School
Classes
Cypress Woods High School
Multiple Classes
Cypress Woods High School
Lists & Loops
Cypress Woods High School
Making a Game