PYTHON MASTERCLASS - SILVER <MT_name_here> CAS Master < _here>
|
|
- Helen Marilyn Bates
- 7 years ago
- Views:
Transcription
1 PYTHON MASTERCLASS - SILVER <MT_name_here> CAS Master < _here>
2 Why are you here? Overview Housekeeping Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback Looking to teach coding as part of Computing, (most probably GCSE) Some basic knowledge of coding in Python Better understanding of what the exam boards require pupils to know Session 2 of 3 on a functional introduction to coding and computational thinking in Python
3 Housekeeping Overview Housekeeping Introduction Session 1 Session 2 Session 3 Plenary Homework Registration Session 1: Looping using iteration Session 2: Lists and Arrays Session 3: Strings * Please take a break as required during practical activities Questions Feedback
4 Introduction Overview Housekeeping Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback Success Criteria: By the end of today you will be able to: Apply iteration constructs effectively to solve problems Use and manipulate strings and lists Plan and implement simple algorithms using these concepts in Python Recognise how this relates to sections of the GCSE assignments
5 Typical GCSE expectations For the OCR GCSE programming Non-examined assessment (parts tested in the exam): Identify and use variables, operators, inputs, outputs and assignments The three basic programming constructs: Sequence; Selection; Iteration Suitable loops including count and condition controlled loops Different types of data, including Boolean, string, integer and real Basic string manipulation Basic file handling operations Arrays (or equivalent) Functions/sub programs to create structured code
6 Typical GCSE expectations It s all about being able to think Computationally and solve problems
7 Session 1: Looping using iteration Overview Eat, sleep, rave, repeat - Beardyman Housekeeping Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback
8 Revision From the last course you should be already familiar with: Sequence Selection Flowcharts Pseudocode Refresh your memory at: community.computingatschool.org.uk/resources/4402 The next few slides are for revision only!
9 Sequence The starting point for all algorithms Series of instructions one after each other Pick up cup Drink coffee Put down
10 Selection Useful algorithms will need to react to conditions that occur Is mug empty? Drink coffee Nibble biscuit Put down
11 Iteration Repeat parts of an algorithm to approach the desired outcome Is there coffee in mug? Pick up mug Drink coffee Put down
12 Planning using flowcharts Graphical representation of algorithm sequence. Good flowchart design must: Begin and end with the same shape Connect all steps with a direction arrow Be evenly spaced Have clear and concise descriptions
13 Planning using pseudocode This is a list of instructions outlining the operation of an algorithm written so that a human can understand them Good pseudocode design must: Have line numbers Have clear descriptions without being too complex Be indented to show similar blocks of code List actions as capital letters
14 What next? Consider how sequence, selection and iteration control structures form part of algorithm designs (flowcharts and pseudocode) Produce code from these designs using Python Look at some problems that require us to think Computationally
15 Algorithms that use selection /iteration Programs needs to respond to events This involves conditional constructs or selection IF ELIF ELSE Programs often repeat themselves A loop or iteration can be programmed to run a given number of times (count-controlled) FOR Or a loop can continue until a certain finishing state has been achieved (condition-controlled) WHILE, REPEAT UNTIL (aka DO WHILE)
16 Count-controlled loops A loop that runs a specific number of times: FOR var=start num TO end num execute this statement END FOR FOR i = 1 TO 10 OUTPUT i NEXT i = 1 Is i <= 10? Yes Output i i = i + 1 No
17 Python FOR construct Again Python uses white space and indents to separate FOR statements into blocks:
18 Condition-controlled loops - WHILE Loop that runs until condition is met, (and may never run): WHILE condition is true execute this statement END WHILE WHILE x < 10 OUTPUT x x = x + 1 END WHILE Is x < 10? Yes Output x x = x + 1 No
19 Condition-controlled loops - REPEAT Loop that will run at least once: REPEAT execute this statement UNTIL condition is true REPEAT OUTPUT x x = x - 1 UNTIL x <= 0 Output x x = x - 1 Is x <= 0? No
20 Python WHILE construct Python uses white space and indents to separate WHILE statements into blocks:
21 Python REPEAT construct Python doesn t have a specific REPEAT construct so we have to adapt a WHILE loop:
22 Rote learning is useful Python isn t always the ideal solution, especially if you need to meet exam board specification criteria Teach pupils structures to use but make sure concepts are embedded Output x x = x - 1 Yes Is x <= 0? No
23 Your turn Some practical examples of conditional and iterative programs using Python
24 Gotchas Syntax Errors: capitalising variables inconsistently, e.g. Lives is not the same as lives Wrongly using capital letters for functions, e.g. print not Print Missing : or ) or Using instead of Indentation doesn t line up Saving.py extension when pupils have not done this, their code does not feature syntax colour coding
25 Your turn... Basic count controlled loop for i in range(start, one more than end): execute this code Use a basic count controlled loop to: Print the word Python exactly 10 times Print the numbers from 1 to 10, and then print Boom! Print out the times table (to 12) for a user specified number in the format: 8 x 1 = 8 8 x 2 = 16 etc. Do it in only three lines of code!
26 Your turn... Condition controlled loop while condition is True: execute this code Use a condition controlled loop to: Try to plan this task using pseudocode or a flowchart before you code it... Create a program that asks users to "guess how many sly foxes there are in the room (there are four). If the correct number is guessed the program stops, otherwise it continues forever. Modify the program to ask the user to specify the number of guesses allowed and stop the loop at the appropriate point
27 Your turn... Dice rolling Rolling the dice - try this: from random import randint n = randint(1,100) print (n) Write Python code that simulates rolling a die Try to plan this task using pseudocode or a flowchart before you code it... Extend the program so it asks the user if they want to roll the dice; while they say yes it should tell them the number they have rolled ( You have rolled a ) and then ask them again after each roll Add the ability to select how many sides the die should have before starting the rolling sequence (remember to update the randint function) Extension (or something to do when you get home!) Have a go at coding the examples from the worksheets.
28 Session 2: Lists and arrays Overview Housekeeping Introduction Session 1 The human animal differs from the lesser primates in his passion for lists. H. Allen Smith Session 2 Session 3 Plenary Homework Questions Feedback
29 Arrays A collection of data all stored under one common name The data types used in this structure have to be the same, eg. an array of integers
30 Lists A collection of data all stored under one common name Data types can be mixed and the structure is dynamic 1 3 two True
31 Pretend lists are arrays Initially, lists and arrays could be considered as the same and used interchangeably Lists (and arrays) have elements referenced by an index value: testscore = [0,0,0] testscore[0] = 23 testscore[2] = 65 testscore[1] = 43
32 Accessing lists Lists implement the standard sequence interface: n = len(l) # Number of elements item = L[index] # Read element L[index] = value # Change element seq = L[start:stop] # Sub-list lastval = L[-1] # Element at end
33 Looping through lists A common task is to loop over a lists to find or summarise the data within it There is a traditional approach to this using WHILE loops but many languages support the use of FOR loops FOR is more convenient, however, it requires the whole list to be processed You can break out of the loop but this is considered bad practice
34 A comparison The traditional approach A Pythonesque approach
35 Modifying lists Lists are dynamic so the structure can be adjusted Other common list operations include: L.append( new ) # Add to end L.pop(4) # Remove an element L.insert(3, new ) # Insert new
36 Your turn Christmas List Activity Write a program that keeps asking for Christmas presents until the word STOP is entered at which point it prints out the list of the presents you have entered, followed by how many presents were entered. Extras Sort the list into order Pick an item from the list at random Remove an item if they have been naughty Tells you if the item ipad is in the list
37 Session 3: Strings Overview Housekeeping Like a puppet on a striiiiiiiiing. Sandie Shaw Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback
38 Storing Characters The character data type (often called char) stores a single letter or number If you store a number it is treated as a character not as a numerical value Strings are usually formed as an array of char (not technically a native data type themselves)
39 Strings As they are arrays they can be accessed as such: mystring = Hello mystring[0] mystring[2] mystring[4] However, they are immutable which means you cannot change parts of them
40 Looping through strings When using strings, we often want to loop through them as we have seen with a list, perhaps to count how many letters occur The same comparisons between methods applies
41 A comparison The traditional approach A Pythonesque approach
42 Shortcuts String objects have methods and can use functions that provide useful, commonly-used results: Number of characters in string First position of the character a Count number of character a s Replace all a s with zz Split by character a into a list Extract 3 characters from left of string Extract 3 characters from right of string len(thestring) thestring.find( a ) thestring.count( a ) thestring.replace( a, zz ) thestring.split( a ) thestring[:3] thestring[-3:]
43 Your turn Task 1 Write some code that counts the number of occurrences of the lowercase letter a in a string inputted by the user. Task 2 Write some code that decides whether a string input by the user contains all numeric characters or not, and displays an appropriate message. NB there is a short cut for this, so search for it. Task 3 Write a program that takes in a word and says whether or not it is a palindrome. (A palindrome is a word that is the same backwards as forwards like noon and radar).
44 Plenary Overview Housekeeping Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback Apply iteration constructs effectively to solve problems Use and manipulate strings and lists Plan and implement simple algorithms using these concepts in Python Recognise how this relates to sections of the GCSE assignments
45 A453 old tasks problem There are both simple and complicated ways of solving this...
46 A453 Set of tasks 2 problem 3 Count controlled loops and strings?
47 Homework Overview Housekeeping Introduction Session 1 Complete the follow-up tasks and the extension work from session 1. Session 2 Session 3 Plenary Homework Questions Feedback If you don t practice you won t improve and your lessons will be more difficult!
48 Interactive websites for learning Python Computer Science Circles University of Waterloo, Canada How to think like a Computer Scientist - Interactive Edition Problem solving with Algorithms and Data Structures using Python Pygame a set of Python modules designed for writing games.
49 Python Session #3 - Gold at a school near you, soon! Check CAS Events page regularly Subroutines (procedures and functions) File handling Tackling complex problems and more problems to practise writing solutions
50 Questions Overview Housekeeping Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback
51 On-line Survey Overview Housekeeping <tbc> Introduction Session 1 Session 2 Session 3 Plenary Homework Questions Feedback
Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.
Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material
More informationPython for Rookies. Example Examination Paper
Python for Rookies Example Examination Paper Instructions to Students: Time Allowed: 2 hours. This is Open Book Examination. All questions carry 25 marks. There are 5 questions in this exam. You should
More informationPrime Time: Homework Examples from ACE
Prime Time: Homework Examples from ACE Investigation 1: Building on Factors and Multiples, ACE #8, 28 Investigation 2: Common Multiples and Common Factors, ACE #11, 16, 17, 28 Investigation 3: Factorizations:
More informationExcel & Visual Basic for Applications (VBA)
Excel & Visual Basic for Applications (VBA) The VBA Programming Environment Recording Macros Working with the Visual Basic Editor (VBE) 1 Why get involved with this programming business? If you can't program,
More informationWhat makes a good coder and technology user at Mountfields Lodge School?
What makes a good coder and technology user at Mountfields Lodge School? Pupils who persevere to become competent in coding for a variety of practical and inventive purposes, including the application
More informationExercise 1: Python Language Basics
Exercise 1: Python Language Basics In this exercise we will cover the basic principles of the Python language. All languages have a standard set of functionality including the ability to comment code,
More informationSources: On the Web: Slides will be available on:
C programming Introduction The basics of algorithms Structure of a C code, compilation step Constant, variable type, variable scope Expression and operators: assignment, arithmetic operators, comparison,
More informationObjective: Count 10 objects and move between all configurations.
Objective: Count 10 objects and move between all configurations. Suggested Lesson Structure Fluency Practice Application Problem Concept Development Student Debrief Total Time (12 minutes) (5 minutes)
More informationAQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping
AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping 3.1.1 Constants, variables and data types Understand what is mean by terms data and information Be able to describe the difference
More informationPython Loops and String Manipulation
WEEK TWO Python Loops and String Manipulation Last week, we showed you some basic Python programming and gave you some intriguing problems to solve. But it is hard to do anything really exciting until
More informationLecture 2 Mathcad Basics
Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority
More informationPROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms
PROG0101 FUNDAMENTALS OF PROGRAMMING Chapter 3 1 Introduction to A sequence of instructions. A procedure or formula for solving a problem. It was created mathematician, Mohammed ibn-musa al-khwarizmi.
More informationTurtle Power. Introduction: Python. In this project, you ll learn how to use a turtle to draw awesome shapes and patterns. Activity Checklist
Python 1 Turtle Power All Code Clubs must be registered. By registering your club we can measure our impact, and we can continue to provide free resources that help children learn to code. You can register
More informationCode Kingdoms Learning a Language
codekingdoms Code Kingdoms Unit 2 Learning a Language for kids, with kids, by kids. Resources overview We have produced a number of resources designed to help people use Code Kingdoms. There are introductory
More information2 SYSTEM DESCRIPTION TECHNIQUES
2 SYSTEM DESCRIPTION TECHNIQUES 2.1 INTRODUCTION Graphical representation of any process is always better and more meaningful than its representation in words. Moreover, it is very difficult to arrange
More informationChapter 2 Writing Simple Programs
Chapter 2 Writing Simple Programs Charles Severance Textbook: Python Programming: An Introduction to Computer Science, John Zelle Software Development Process Figure out the problem - for simple problems
More information20 CODE CHALLENGES. GCSE (9 1) Computer Science GCSE REFORM. February 2015
February 2015 GCSE (9 1) Computer Science GCSE REFORM We will inform centres about any changes to the specification. We will also publish changes on our website. The latest version of our specification
More informationComputer Science for San Francisco Youth
Python for Beginners Python for Beginners Lesson 0. A Short Intro Lesson 1. My First Python Program Lesson 2. Input from user Lesson 3. Variables Lesson 4. If Statements How If Statements Work Structure
More informationRiver Dell Regional School District. Computer Programming with Python Curriculum
River Dell Regional School District Computer Programming with Python Curriculum 2015 Mr. Patrick Fletcher Superintendent River Dell Regional Schools Ms. Lorraine Brooks Principal River Dell High School
More informationPython Lists and Loops
WEEK THREE Python Lists and Loops You ve made it to Week 3, well done! Most programs need to keep track of a list (or collection) of things (e.g. names) at one time or another, and this week we ll show
More informationRegular Expressions and Automata using Haskell
Regular Expressions and Automata using Haskell Simon Thompson Computing Laboratory University of Kent at Canterbury January 2000 Contents 1 Introduction 2 2 Regular Expressions 2 3 Matching regular expressions
More informationIntroduction to Python
WEEK ONE Introduction to Python Python is such a simple language to learn that we can throw away the manual and start with an example. Traditionally, the first program to write in any programming language
More informationKS3 Computing Group 1 Programme of Study 2015 2016 2 hours per week
1 07/09/15 2 14/09/15 3 21/09/15 4 28/09/15 Communication and Networks esafety Obtains content from the World Wide Web using a web browser. Understands the importance of communicating safely and respectfully
More informationPushes and Pulls. TCAPS Created June 2010 by J. McCain
Pushes and Pulls K i n d e r g a r t e n S c i e n c e TCAPS Created June 2010 by J. McCain Table of Contents Science GLCEs incorporated in this Unit............... 2-3 Materials List.......................................
More informationIntroduction to Algorithms March 10, 2004 Massachusetts Institute of Technology Professors Erik Demaine and Shafi Goldwasser Quiz 1.
Introduction to Algorithms March 10, 2004 Massachusetts Institute of Technology 6.046J/18.410J Professors Erik Demaine and Shafi Goldwasser Quiz 1 Quiz 1 Do not open this quiz booklet until you are directed
More informationCambridge English: First (FCE) Writing Part 1
Cambridge English: First (FCE) Writing Part 1 Teacher s notes Aims of the lesson to familiarise students with Part 1 of the Writing paper and give them practice at planning an essay Time needed 50 minutes
More informationIntroduction to: Computers & Programming: Review for Midterm 2
Introduction to: Computers & Programming: Adam Meyers New York University Summary Some Procedural Matters Summary of what you need to Know For the Test and To Go Further in the Class The Practice Midterm
More informationIntro to the Art of Computer Science
1 LESSON NAME: Intro to the Art of Computer Science Lesson time: 45 60 Minutes : Prep time: 15 Minutes Main Goal: Give the class a clear understanding of what computer science is and how it could be helpful
More informationThe Richard Pate School. Draft Year 4 Scheme of Work for Scratch
The Richard Pate School Draft Year 4 Scheme of Work for Scratch Marcus Gilvear July 2014 (Acknowledgements: Phil Bagge and Duncan Hooper) Re Scratch: This work is licensed under the Creative Commons Attribution-NonCommercial
More informationIntegers are positive and negative whole numbers, that is they are; {... 3, 2, 1,0,1,2,3...}. The dots mean they continue in that pattern.
INTEGERS Integers are positive and negative whole numbers, that is they are; {... 3, 2, 1,0,1,2,3...}. The dots mean they continue in that pattern. Like all number sets, integers were invented to describe
More informationTCM040 MSOM NEW:TCM040 MSOM 01/07/2009 12:13 Page 1. A book of games to play with children
TCM040 MSOM NEW:TCM040 MSOM 01/07/2009 12:13 Page 1 A book of games to play with children TCM040 MSOM NEW:TCM040 MSOM 01/07/2009 12:13 Page 2 Contents About this book 3 Find the hidden money 4 Money box
More informationUnderstand numbers, ways of representing numbers, relationships among numbers, and number systems
Equivalent Fractions and Comparing Fractions: Are You My Equal? Brief Overview: This four day lesson plan will explore the mathematical concept of identifying equivalent fractions and using this knowledge
More informationDATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan
DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic
More informationCSC 221: Computer Programming I. Fall 2011
CSC 221: Computer Programming I Fall 2011 Python control statements operator precedence importing modules random, math conditional execution: if, if-else, if-elif-else counter-driven repetition: for conditional
More informationLearn How to Revise 1
Learn How to Revise 1 SCHOOL EXAM DATES 2016 END OF YEAR EXAMS FOR YEARS 7-9 BEGIN ON MONDAY 6 TH JUNE THEY WILL TAKE PLACE IN LESSONS DURING THIS WEEK AND IF NECESSARY THE WEEK AFTER. Some subjects are
More informationName: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
More informationI look forward to doing business with you and hope we get the chance to meet soon
Emailing 1: Worksheet 1 - Reading Tasks Dear Mr Smith, I would like to introduce myself. My name is Saarland and I am the new South Western sales manager for Chou Cream English Schools. The previous sales
More informationESCI 386 Scientific Programming, Analysis and Visualization with Python. Lesson 5 Program Control
ESCI 386 Scientific Programming, Analysis and Visualization with Python Lesson 5 Program Control 1 Interactive Input Input from the terminal is handled using the raw_input() function >>> a = raw_input('enter
More informationChapter 2: Algorithm Discovery and Design. Invitation to Computer Science, C++ Version, Third Edition
Chapter 2: Algorithm Discovery and Design Invitation to Computer Science, C++ Version, Third Edition Objectives In this chapter, you will learn about: Representing algorithms Examples of algorithmic problem
More informationPOLITE ENGLISH. Giving advice FREE ON-LINE COURSE. Lesson 2: version without a key SZKOLENIA JĘZYKOWE DLA FIRM ZREALIZUJEMY TWÓJ CEL!
POLITE ENGLISH FREE ON-LINE COURSE Lesson 2: Giving advice version without a key WARM UP THINK Do you like giving advice? Do you often ask for advice? WATCH OUT! Do you know the difference between: ADVICE
More informationNCCA. Transition Unit Having fun with computer programming and games
Transition Unit Having fun with computer programming and games NCCA An Chomhairle Náisiúnta Curaclaim agus Measúnachta t National Council for Curriculum and Assessmen t Area of Study Top up and Tasters
More informationWelcome to Introduction to programming in Python
Welcome to Introduction to programming in Python Suffolk One, Ipswich, 4:30 to 6:00 Tuesday Jan 14, Jan 21, Jan 28, Feb 11 Welcome Fire exits Toilets Refreshments 1 Learning objectives of the course An
More informationCOMPUTER SCIENCE (5651) Test at a Glance
COMPUTER SCIENCE (5651) Test at a Glance Test Name Computer Science Test Code 5651 Time Number of Questions Test Delivery 3 hours 100 selected-response questions Computer delivered Content Categories Approximate
More informationBarter vs. Money. Grade One. Overview. Prerequisite Skills. Lesson Objectives. Materials List
Grade One Barter vs. Money Overview Students share the book Sheep in a Shop, by Nancy Shaw, to learn about choice, making decisions, trade, and the barter system. They complete worksheets on comparing
More informationUnit 5 Length. Year 4. Five daily lessons. Autumn term Unit Objectives. Link Objectives
Unit 5 Length Five daily lessons Year 4 Autumn term Unit Objectives Year 4 Suggest suitable units and measuring equipment to Page 92 estimate or measure length. Use read and write standard metric units
More informationComputers. An Introduction to Programming with Python. Programming Languages. Programs and Programming. CCHSG Visit June 2014. Dr.-Ing.
Computers An Introduction to Programming with Python CCHSG Visit June 2014 Dr.-Ing. Norbert Völker Many computing devices are embedded Can you think of computers/ computing devices you may have in your
More informationEKT150 Introduction to Computer Programming. Wk1-Introduction to Computer and Computer Program
EKT150 Introduction to Computer Programming Wk1-Introduction to Computer and Computer Program A Brief Look At Computer Computer is a device that receives input, stores and processes data, and provides
More informationChapter 8: Bags and Sets
Chapter 8: Bags and Sets In the stack and the queue abstractions, the order that elements are placed into the container is important, because the order elements are removed is related to the order in which
More informationTeachers should read through the following activity ideas and make their own risk assessment for them before proceeding with them in the classroom.
Mathematical games Teacher notes Teachers should read through the following activity ideas and make their own risk assessment for them before proceeding with them in the classroom. Aims: To use mathematics
More informationExercise 4 Learning Python language fundamentals
Exercise 4 Learning Python language fundamentals Work with numbers Python can be used as a powerful calculator. Practicing math calculations in Python will help you not only perform these tasks, but also
More informationComplex Sentences. This icon indicates that detailed teacher s notes are available in the Notes Page.
Complex Sentences This icon indicates that detailed teacher s notes are available in the Notes Page. This icon indicates the slide contains activities created in Flash. These activities are not editable.
More information6.080/6.089 GITCS Feb 12, 2008. Lecture 3
6.8/6.89 GITCS Feb 2, 28 Lecturer: Scott Aaronson Lecture 3 Scribe: Adam Rogal Administrivia. Scribe notes The purpose of scribe notes is to transcribe our lectures. Although I have formal notes of my
More informationCHAPTER 18 Programming Your App to Make Decisions: Conditional Blocks
CHAPTER 18 Programming Your App to Make Decisions: Conditional Blocks Figure 18-1. Computers, even small ones like the phone in your pocket, are good at performing millions of operations in a single second.
More informationYear 9 set 1 Mathematics notes, to accompany the 9H book.
Part 1: Year 9 set 1 Mathematics notes, to accompany the 9H book. equations 1. (p.1), 1.6 (p. 44), 4.6 (p.196) sequences 3. (p.115) Pupils use the Elmwood Press Essential Maths book by David Raymer (9H
More informationThe Fruit of the Spirit is Love
The Fruit of the Spirit is Love Pre-Session Warm Up (Galatians 5:22-23) Today we are going to learn more about the fruit of the Spirit called, Love. What do you think of when you hear the word love? A
More informationBEE-BOT FAIRYTALE MAT 1. BEE-BOT GOES VISITING
BEE-BOT FAIRYTALE MAT Ideas for using the Fairytale Mat with children aged approximately 5-8 The Bee-Bot Fairytale mat is a fun way of introducing control, maths and geography to the curriculum, as well
More informationAlgorithms Abstraction
Algorithms Abstraction Instructions and answers for teachers These instructions should accompany the OCR resource Algorithms - Abstraction activity which supports OCR GCSE (9 1) Computer Science The Activity:
More informationPython. KS3 Programming Workbook. Name. ICT Teacher Form. Do you speak Parseltongue?
Python KS3 Programming Workbook Do you speak Parseltongue? Name ICT Teacher Form Welcome to Python The python software has two windows that we will use. The main window is called the Python Shell and allows
More informationSpecimen 2015 am/pm Time allowed: 1hr 30mins
SPECIMEN MATERIAL GCSE COMPUTER SCIENCE 8520/1 Paper 1 Specimen 2015 am/pm Time allowed: 1hr 30mins Materials There are no additional materials required for this paper. Instructions Use black ink or black
More informationMATH 140 Lab 4: Probability and the Standard Normal Distribution
MATH 140 Lab 4: Probability and the Standard Normal Distribution Problem 1. Flipping a Coin Problem In this problem, we want to simualte the process of flipping a fair coin 1000 times. Note that the outcomes
More informationWe will learn the Python programming language. Why? Because it is easy to learn and many people write programs in Python so we can share.
LING115 Lecture Note Session #4 Python (1) 1. Introduction As we have seen in previous sessions, we can use Linux shell commands to do simple text processing. We now know, for example, how to count words.
More informationIntroduction to Computer Science I Spring 2014 Mid-term exam Solutions
Introduction to Computer Science I Spring 2014 Mid-term exam Solutions 1. Question: Consider the following module of Python code... def thing_one (x): y = 0 if x == 1: y = x x = 2 if x == 2: y = -x x =
More informationPseudo code Tutorial and Exercises Teacher s Version
Pseudo code Tutorial and Exercises Teacher s Version Pseudo-code is an informal way to express the design of a computer program or an algorithm in 1.45. The aim is to get the idea quickly and also easy
More informationProgramming Lists of Data
Chapter 19 Programming Lists of Data As you ve already seen, apps handle events and make decisions; such processing is fundamental to computing. But the other fundamental part of an app is its data the
More informationComputer Science 217
Computer Science 217 Midterm Exam Fall 2009 October 29, 2009 Name: ID: Instructions: Neatly print your name and ID number in the spaces provided above. Pick the best answer for each multiple choice question.
More informationPython Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Sequences: Strings and Lists Python Programming, 2/e 1 Objectives To understand the string data type and how strings are represented in the computer.
More informationWorking with whole numbers
1 CHAPTER 1 Working with whole numbers In this chapter you will revise earlier work on: addition and subtraction without a calculator multiplication and division without a calculator using positive and
More information1. Define: (a) Variable, (b) Constant, (c) Type, (d) Enumerated Type, (e) Identifier.
Study Group 1 Variables and Types 1. Define: (a) Variable, (b) Constant, (c) Type, (d) Enumerated Type, (e) Identifier. 2. What does the byte 00100110 represent? 3. What is the purpose of the declarations
More informationCSC 180 H1F Algorithm Runtime Analysis Lecture Notes Fall 2015
1 Introduction These notes introduce basic runtime analysis of algorithms. We would like to be able to tell if a given algorithm is time-efficient, and to be able to compare different algorithms. 2 Linear
More informationThe use of binary codes to represent characters
The use of binary codes to represent characters Teacher s Notes Lesson Plan x Length 60 mins Specification Link 2.1.4/hi Character Learning objective (a) Explain the use of binary codes to represent characters
More informationSocial Return on Investment
Social Return on Investment Valuing what you do Guidance on understanding and completing the Social Return on Investment toolkit for your organisation 60838 SROI v2.indd 1 07/03/2013 16:50 60838 SROI v2.indd
More informationTo download the script for the listening go to: http://www.teachingenglish.org.uk/sites/teacheng/files/learning-stylesaudioscript.
Learning styles Topic: Idioms Aims: - To apply listening skills to an audio extract of non-native speakers - To raise awareness of personal learning styles - To provide concrete learning aids to enable
More informationNESTED IFS, IF(AND), IF(OR)
NESTED IFS, IF(AND), IF(OR) MODELLING : CONTENTS Nested IF formulae IF(Or..) formulae IF(And ) formulae Wherever you see this symbol, make sure you remember to save your work! A simple IF Then statement
More informationHands-on Practice. Hands-on Practice. Learning Topics
Using Microsoft PowerPoint Software on a SMART Board Interactive Whiteboard You make presentations for a reason to communicate a message. With a SMART Board interactive whiteboard, you can focus the attention
More informationMathematical goals. Starting points. Materials required. Time needed
Level S2 of challenge: B/C S2 Mathematical goals Starting points Materials required Time needed Evaluating probability statements To help learners to: discuss and clarify some common misconceptions about
More informationCAs and Turing Machines. The Basis for Universal Computation
CAs and Turing Machines The Basis for Universal Computation What We Mean By Universal When we claim universal computation we mean that the CA is capable of calculating anything that could possibly be calculated*.
More informationManagement Information Systems 260 Web Programming Fall 2006 (CRN: 42459)
Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Class Time: 6:00 8:05 p.m. (T,Th) Venue: WSL 5 Web Site: www.pbvusd.net/mis260 Instructor Name: Terrell Tucker Office: BDC 127
More informationProgramming Exercises
s CMPS 5P (Professor Theresa Migler-VonDollen ): Assignment #8 Problem 6 Problem 1 Programming Exercises Modify the recursive Fibonacci program given in the chapter so that it prints tracing information.
More informationPreparing and Revising for your GCSE Exams
Preparing and Revising for your GCSE Exams Preparing and Revising for GCSEs Page 2 Contents Introduction 3 Effective Learning and Revision 4 What you need to Revise 5 Revision Notes and Practice 6 Getting
More informationFoundation 2 Games Booklet
MCS Family Maths Night 27 th August 2014 Foundation 2 Games Booklet Stage Focus: Trusting the Count Place Value How are games used in a classroom context? Strategically selected games have become a fantastic
More informationBBC Learning English Talk about English Business Language To Go Part 12 - Business socialising
BBC Learning English Business Language To Go Part 12 - Business socialising This programme was first broadcast in 2001. This is not an accurate word-for-word transcript of the programme. In this programme
More informationCmpSci 187: Programming with Data Structures Spring 2015
CmpSci 187: Programming with Data Structures Spring 2015 Lecture #12 John Ridgway March 10, 2015 1 Implementations of Queues 1.1 Linked Queues A Linked Queue Implementing a queue with a linked list is
More informationHas difficulty with counting reliably in tens from a multiple of ten
Has difficulty with counting reliably in tens from a multiple of ten Opportunity for: looking for patterns 5 YR / 100-square Tens cards (Resource sheet 24) Multiples of ten (10 100) written on A5 pieces
More informationLab 11. Simulations. The Concept
Lab 11 Simulations In this lab you ll learn how to create simulations to provide approximate answers to probability questions. We ll make use of a particular kind of structure, called a box model, that
More informationMyMaths. User Guide for Teachers. Secondary Level
MyMaths User Guide for Teachers Secondary Level Edition 1.5 February 2015 Table of Contents Welcome to the MyMaths user guide What is MyMaths?.............................. 5 Who is this user guide for?.......................
More informationPerl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl
First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End
More informationKodu Curriculum: Single Session Intro
Kodu Curriculum: Single Session Intro Table of Contents Kodu Curriculum: Single Session Intro... 2 Kodu Description... 2 Teaching with Kodu... 2 Basic Navigation (5 min)... 3 Creating a Simple Program
More informationI PUC - Computer Science. Practical s Syllabus. Contents
I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations
More informationGoal: Practice writing pseudocode and understand how pseudocode translates to real code.
Lab 7: Pseudocode Pseudocode is code written for human understanding not a compiler. You can think of pseudocode as English code that can be understood by anyone (not just a computer scientist). Pseudocode
More informationCrash Dive into Python
ECPE 170 University of the Pacific Crash Dive into Python 2 Lab Schedule Ac:vi:es Assignments Due Today Lab 11 Network Programming Due by Dec 1 st 5:00am Python Lab 12 Next Week Due by Dec 8 th 5:00am
More informationNF5-12 Flexibility with Equivalent Fractions and Pages 110 112
NF5- Flexibility with Equivalent Fractions and Pages 0 Lowest Terms STANDARDS preparation for 5.NF.A., 5.NF.A. Goals Students will equivalent fractions using division and reduce fractions to lowest terms.
More informationSection 11 - Teaching Interviews Presentation
Section 11 - Teaching Interviews Presentation This presentation will look at how you can best prepare yourself for a teaching interview and what you can expect. You might feel uneasy about interviews but
More informationFractions. If the top and bottom numbers of a fraction are the same then you have a whole one.
What do fractions mean? Fractions Academic Skills Advice Look at the bottom of the fraction first this tells you how many pieces the shape (or number) has been cut into. Then look at the top of the fraction
More informationHooray for the Hundreds Chart!!
Hooray for the Hundreds Chart!! The hundreds chart consists of a grid of numbers from 1 to 100, with each row containing a group of 10 numbers. As a result, children using this chart can count across rows
More informationFlowcharting, pseudocoding, and process design
Systems Analysis Pseudocoding & Flowcharting 1 Flowcharting, pseudocoding, and process design The purpose of flowcharts is to represent graphically the logical decisions and progression of steps in the
More informationAlgorithm & Flowchart & Pseudo code. Staff Incharge: S.Sasirekha
Algorithm & Flowchart & Pseudo code Staff Incharge: S.Sasirekha Computer Programming and Languages Computers work on a set of instructions called computer program, which clearly specify the ways to carry
More informationCS Matters in Maryland CS Principles Course
CS Matters in Maryland CS Principles Course Curriculum Overview Project Goals Computer Science (CS) Matters in Maryland is an NSF supported effort to increase the availability and quality of high school
More informationLab 4.4 Secret Messages: Indexing, Arrays, and Iteration
Lab 4.4 Secret Messages: Indexing, Arrays, and Iteration This JavaScript lab (the last of the series) focuses on indexing, arrays, and iteration, but it also provides another context for practicing with
More informationWhat makes a good friend?
What makes a good friend? Cross Curriculum links: En1 3a-e; 4a, b, c En3 1b, 12 PSHCE 4a, c Learning Outcomes: What you need: Understand that there are different kinds of friendship Consider how we might
More informationLesson 4 What Is a Plant s Life Cycle? The Seasons of a Tree
Lesson 4 What Is a Plant s Life Cycle? The Seasons of a Tree STUDENT SKILLS: predicting, communicating prior observations and knowledge, listening, cooperating, observing, sequencing, communicating, reasoning,
More information