python sol

Upload: clang-santiago

Post on 08-Jan-2016

216 views

Category:

Documents


0 download

DESCRIPTION

Python Sol

TRANSCRIPT

Selby High SchoolYear 7 Scheme of Learning2013-2014Introduction to Programming using python 6 Lessons

This modules is taught so allow ks3 students experience the fun of programming a computer. Python is used for its syntactical simplicity and short learning curve before students are able to produce their own programs.

Lesson 1: Intro to python

ObjectivesOutcomesLesson outlineResourcesAFL Literacy

Learn about python as a programming language

Learn about expressions & variables and their use

Create several successful programs All-Level 4- State what a programming language is and what a program is. Get half marks on the test (6/12)

Most-Level 5- Have used variables and with help get 75% on the test (9/12)

Some-Level 6- Written their own programs and independently got maximum marks on the test.Starter:Research about some keywords for python

Main:Copy the resources for the complete moduleBriefly discuss why we teach python and what is programmingOpen and us idle shell to create their first program Hello WorldLearn about expression and their operators.Students explore syntax by typing several statements into idle shell.Learn about variables and that python is case sensitive.

Plenary:Complete the quizExplore the tdemo_spaceshp codePython lesson 1 Powerpoint

Self-assessment worksheet

Tdemo_spaceship python codeTargeted questions on starter

Plenary quiz

Self-assessment worksheet

Ability to type the commands in correctly

Lesson 2: Datatypes, editor, IF statement

ObjectivesOutcomesLesson outlineResourcesAFL Literacy

Understand that languages have data types

Be able to use the idle editor to save programs

Understand if statement and indentation All: Know the key data types discussed in lessonTo be able to store a user input variable with helpWrite, save and run your first python program

Most: Be able to write these with little help.

Some: Independently write these and adapt them Starter:Recap sample statements form last lesson

Main:Recap on last lesson about keywordsStudents then open the idle editor and type a program in, save it and run it.Discuss datatypesType (or load) a random game and run it and use this to discuss the IF statement and indentation.Students are then expected to modify the game.

Plenary:Complete the self-assessment sheetExplore the tangram gamePython lesson 2 Powerpoint

Self-assessment worksheet

Random game

Tangram python code

Starter activity

Asking questions task

Main programming challenge

Self-assessment worksheet

Requirement to type the commands in correctly

Requirement to use Capital letters and punctuation appropriately.

Lesson 3: Functions & Comments

ObjectivesOutcomesLesson outlineResourcesAFL Literacy

Understand the benefits of a function

Be able to write and call a function

Understand how and why we should use comments in our code All: To be able to write a function - with help and be able to add comments to your code

Most: Be able to write a these with little help.

Some: Independently write these and adapt them and complete one of the extension tasks.Starter:Recap variables & data types form last lesson

Main:Discuss what a function is and that they have already used themDemonstration of s simple functionStudents then create their own function to ask the user their nameComments are then discussed and students are to create a second function to add numbers together.

Plenary:Complete the self-assessment sheetExplore fractals in python

Python lesson 3 Powerpoint

Self-assessment worksheet

Starter Activity

Main function and user details functions - should the students need them

Fractals folder in the plenary

Starter activity

2 function creating tasks

Self-assessment worksheet

Requirement to type the commands in correctly

Requirement to use short and effective language when commenting their code.

Lesson 4: Function return values and boolean expressions

ObjectivesOutcomesLesson outlineResourcesAFL Literacy

Understand a branching statement (if .. then .. else)

Understand about indenting and blocks of statements

Able to use a function to create a truth table All: written code using if..then..else - with helpwritten a truth table in code

Most: Be able to write a these with little help.

Some: Independently write these and adapt them and complete one of the extension tasks.Starter:Recap expressions and function definition form last lesson

Main:Recap expressions and operators useStudents then explore the if .. then ..else statement and the requirements to indent code.Boolean truth tables are then discussed and students write a program to evaluate their outcomes

Plenary:Students use their existing programs to complete the truth tables.

Explore the use of the python turtlePython lesson 4 Powerpoint

Self-assessment worksheet

Starter Activity

Plenary quiz

get_user_input_boolean function

our_if python code

Truth_AND_full working python code

Turtle_intro python codeStarter activity

Self-assessment worksheet

Targeted questions for expressions and operators recap

Plenary quiz

Requirement to type the commands in correctly

Requirement to use short and effective language when commenting their code.

Lesson 5: While loops and the development process using pseudo code

ObjectivesOutcomesLesson outlineResourcesAFL Literacy

Understand how to use looping statement (while)

Understand to use the break statement

Understand the development process of flow charts to comments to code All: written code using while - with helpdeveloped programs using pseudo code

Most: Be able to write a these with little help.

Some: Independently write these and adapt them and complete the extension tasks.Starter:Recap if statements form last lesson

Main:Explain how while loops are constructed using the while statement

Introduce code development process from pseudo code, through comments into code.

Student complete a development process to create a program to count down form a given number

The break statement is explained.

Students complete another development process to create an improved guess the number game

Plenary:Students write 6 questions about python coding

Python lesson 5 Powerpoint

Self-assessment worksheet

Starter Activity

Plenary questions

Subtract 1 programSubtract 1 program comments onlyrandom number guess v2random number guess v2 commentsStarter activity

Self-assessment worksheet

Targeted questions for expressions and operators recap

Plenary quiz

Requirement to type the commands in correctly

Requirement to use short and effective language when commenting their code.

Lesson 6: mutli_select statements

ObjectivesOutcomesLesson outlineResourcesAFL Literacy

Understand what a multi_selection statement

Understand how to use a multi_selection statement All: written if .. Elif .. Else code using while - with help

developed programs using pseudo code

scored 50% in the plenary quiz

Most: Be able to write a these with little help.

scored 75% in the plenary quiz

Some: Independently write these and adapt them and complete the extension tasks.

scored 90% in the plenary quiz

Starter:Recap if statements form last lesson

Main:Introduce multi_select (if..then..elifelse) statements to students

Student create their own function using multi_select statements

Class discussion on how that programming task went

Students then create a joke telling program using multi_selection and functions and

Plenary:Students play the hangman game before completing the end of unit quiz and record their marks in their excel progress sheet.

Python lesson 6 Powerpoint

Self-assessment worksheet

Plenary quiz

Students own excel progress sheet.

Starter activity

Self-assessment worksheet

Programs completed

End of unit test

Requirement to type the commands in correctly

Requirement to use short and effective language when commenting their code.

Databases