Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Program optimization wikipedia , lookup
Python syntax and semantics wikipedia , lookup
C Sharp syntax wikipedia , lookup
Indentation style wikipedia , lookup
Standard ML wikipedia , lookup
Structured programming wikipedia , lookup
Comment (computer programming) wikipedia , lookup
C Sharp (programming language) wikipedia , lookup
Go (programming language) wikipedia , lookup
Selby High School Year 7 Scheme of Learning 2013-2014 Introduction 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. Objectives Learn about python as a programming language Learn about expressions & variables and their use Create several successful programs Outcomes All-Level 4- State what a programming language is and what a program is. Get half marks on the test (6/12) Most-Level 5Have used variables and with help get 75% on the test (9/12) Some-Level 6Written their own programs and independently got maximum marks on the test. Objectives Outcomes Understand that languages have data types All: Know the key data types discussed in lesson To be able to store a user input variable with help Write, save and Be able to use the idle editor to save programs Databases Lesson 1: Intro to python Lesson outline Resources AFL Starter: Research about some keywords for python Python lesson 1 Powerpoint Targeted questions on starter Main: Copy the resources for the complete module Briefly discuss why we teach python and what is programming Open and us idle shell to create their first program “Hello World” Learn about expression and their operators. Students explore syntax by typing several statements into idle shell. Learn about variables and that python is case sensitive. Self-assessment worksheet Plenary quiz Tdemo_spaceship python code Self-assessment worksheet Literacy Ability to type the commands in correctly Plenary: Complete the quiz Explore the tdemo_spaceshp code Lesson 2: Datatypes, editor, IF statement Lesson outline Resources Starter: Recap sample statements form last lesson Python lesson 2 Powerpoint Main: Recap on last lesson about keywords Students then open the idle editor and type a program in, save it and run it. Discuss datatypes Self-assessment worksheet Random game AFL Starter activity Literacy Asking questions task Requirement to type the commands in correctly Main programming challenge Requirement to use Capital letters and Selby High School Understand if statement and indentation Year 7 Scheme of Learning run your first python program Most: Be able to write these with little help. Some: Independently write these and adapt them Objectives Outcomes Understand the benefits of a function All: To be able to write a function - with help and be able to add comments to your code Be able to write and call a function Understand how and why we should use comments in our 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. Objectives Understand a branching statement (if .. then .. else) Databases Type (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. 2013-2014 Tangram python code Self-assessment worksheet Plenary: Complete the self-assessment sheet Explore the tangram game Lesson 3: Functions & Comments Lesson outline Resources Starter: Recap variables & data types form last lesson Main: Discuss what a function is and that they have already used them Demonstration of s simple function Students then create their own function to ask the user their name Comments are then discussed and students are to create a second function to add numbers together. Python lesson 3 Powerpoint Self-assessment worksheet Starter Activity AFL Starter activity 2 function creating tasks Self-assessment worksheet Main function and user details functions should the students need them Literacy Requirement to type the commands in correctly Requirement to use short and effective language when commenting their code. Fractals folder in the plenary Plenary: Complete the self-assessment sheet Explore fractals in python Lesson 4: Function return values and boolean expressions Outcomes Lesson outline Resources All: written code using if..then..else - punctuation appropriately. Starter: Recap expressions and function definition form last lesson Python lesson 4 Powerpoint AFL Starter activity Self-assessment Literacy Requirement to type the commands in Selby High School Year 7 Scheme of Learning with help Understand about indenting and blocks of statements Able to use a function to create a truth table written 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. Objectives Understand how to use looping statement (while) Understand to use the break statement Understand the development process of flow charts to comments to code Plenary: Students use their existing programs to complete the truth tables. Self-assessment worksheet Starter Activity Plenary quiz get_user_input_boolean function worksheet correctly Targeted questions for expressions and operators recap Requirement to use short and effective language when commenting their code. Plenary quiz our_if python code Truth_AND_full working python code Explore the use of the python turtle Turtle_intro python code Lesson 5: While loops and the development process using pseudo code Outcomes Lesson outline Resources All: written code using while - with help developed 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. Databases Main: Recap expressions and operators use Students 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 2013-2014 Starter: Recap if statements form last lesson Python lesson 5 Powerpoint Main: Explain how while loops are constructed using the while statement Self-assessment worksheet Starter Activity 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 questions Subtract 1 program Subtract 1 program comments only random number guess v2 random number guess v2 comments AFL Starter activity Self-assessment worksheet Targeted questions for expressions and operators recap Plenary quiz Literacy Requirement to type the commands in correctly Requirement to use short and effective language when commenting their code. Selby High School Year 7 Scheme of Learning 2013-2014 Plenary: Students write 6 questions about python coding Objectives Understand what a multi_selection statement Understand how to use a multi_selection statement Outcomes 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 Databases Lesson 6: mutli_select statements Lesson outline Resources Starter: Recap if statements form last lesson Python lesson 6 Powerpoint Main: Introduce multi_select (if..then..elif…else) statements to students Self-assessment worksheet Plenary quiz 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. Students own excel progress sheet. AFL Starter activity Self-assessment worksheet Programs completed End of unit test Literacy Requirement to type the commands in correctly Requirement to use short and effective language when commenting their code. Selby High School Databases Year 7 Scheme of Learning 2013-2014