Make a function This is a starter activity and should take 5 minutes [ slide 1 ] >>> def count(number): n=1 while n <= number: print(n) n = n+1 1. Log.

Slides:



Advertisements
Similar presentations
Vocabulary Interactive
Advertisements

Programs, programs, everywhere! This is a starter activity and should take 5 minutes 1.Open up a text editor such as Notepad. 2.Write a list of all the.
Copy, paste, amend This is a starter activity and should take 5 minutes [ slide 1 ] 1.Log in to your computer 2.Open myEtchASketch.py in IDLE 3.Check you.
Type accurately challenge! This is a starter activity and should take 2 minutes [ slide 1 ] 1.Can you type out the code in Code Box 2.1 with no errors.
Make a blank window This is a starter activity and should take 5 minutes [ slide 1 ] 1.Log in to your computer 2.Open IDLE 3.In script mode create a file.
Fill the screen challenge! This is a starter activity and should take 3 minutes [ slide 1 ] 1.Log in to your computer 2.Open IDLE 3.In interactive mode,
Make a dice challenge! This is a starter activity and should take 5 minutes [ slide 1 ] 1.Log in to your computer 2.Open IDLE 3.Copy the code below in.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.
Coding Time This is a starter activity and should take about 10 minutes [ slide 1 ] 1.Log in to your computer 2.Open IDLE 3.Start a script session (Select.
Getting Started With Python Brendan Routledge
Functions. What is a Function?  We have already used a few functions. Can you give some examples?  Some functions take a comma-separated list of arguments.
Homework Drop Box on eChalk.  Step 1 – Create Homework Assignment  Step 2 - Students Submit Homework Assignments  Step 3 - Teacher Reviews Homework.
GCSE COMPUTER SCIENCE Practical Programming using Python
Learning Objective: To understand how to use paragraphs correctly in my work.
Development Environment
Task 2f – part a Prove that you can receive an WITH an attachment, open it AND save the attachment to your user area. Open the with the attachment.
Welcome to Parent University!.
Whatcha doin'? Aims: To start using Python. To understand loops.
Python Lesson 12 Mr. Kalmes.
Generating Multiple Players Cards February 2017
Python 14 Mr. Husch.
Attribution: This PowerPoint created by DeLuca/Colburn 2016
Time management and organisation
Recording Your Script and Creating Your Podcast
A New Look For SRI.
Ms. Melillo & Mr. Pagan Grade 4 Room 209
Computer Networks Lesson 3.
Study Island Student Demo:
Hacking Minecraft on the Raspberry Pi using Python
Study Island Student Demo:
Lesson 2 – OneDrive, Word – Save and Share
Frozen Graphics Lesson 3.
Building Skills for High School & College Success
Lesson 1 Learning Objectives
Writing Functions( ) (Part 5)
Using the Answer Booklet
Check the buttons at the bottom of your Alert
Fill the screen challenge!
Today’s lesson – Python next steps
Week 1 Computer Programming Year 9 – Unit 9.04
A Maze of Zeros.
Log onto a computer first then ….
You may or may not have to sign into Youtube and/or create an account/
Python Lessons 13 & 14 Mr. Kalmes.
Passing Parameters by value
Lesson Aims Vocabulary In this lesson you are going to:
Learning to Program in Python
Mapwork Lesson 2 Where am I?
Building Skills for High School & College Success
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Study Island Student Demo:
Still More Study Skills
Using Activate.
BELLRINGER Find your seat. It will be different from DAY1.
First Grade Mrs. Logan
Hello Year 7! Are you ready to create some spooooky scratch?
How to Take Cornell Notes
As an alternative to viewing this presentation teachers are welcome to simply play with all of the options presented.
Learning Objectives Explain how selection is used to change a program output Decompose a problem with inputs to help design a program Describe the use.
PYTHON: BUILDING BLOCKS Inputs & Outputs
As an alternative to viewing this presentation teachers are welcome to simply play with all of the options presented.
As an alternative to viewing this presentation teachers are welcome to simply play with all of the options presented.
Computer Networks Lesson 3.
Programming In.
Students who will be missing class for performance: Lesson for Feb 7.
Python Lessons 13 & 14 Mr. Husch.
BELLRINGER Find your seat. It will be different from DAY1.
Study Island Student Demo:
Iteration – While Loops
Homework Frequency KS3: Weekly KS4: Weekly
Presentation transcript:

Make a function This is a starter activity and should take 5 minutes [ slide 1 ] >>> def count(number): n=1 while n <= number: print(n) n = n+1 1. Log in to your computer 2. Open IDLE 3. In interactive mode create this function: 4. Press return untill the >>> prompt returns, then type this line: >>> count(10)

Lesson Aims [ slide 2 ] Vocabulary function def key word argument hacking In this lesson you are going to: 1.learn about functions 2.write your own functions 3.use your own functions

Interactive session [ slide 3 ] 1.Read Delving deeper on page 47 – how to stop a code that will not finish. 2.Work your way through pages 47 – 50 in Python Basics. Top Tip: Do you remember how to copy chunks of code easily in IDLE? If not, read what Mr Campbell has to say on page 50. If you have finished: 1. Help other students who may be stuck 2.Try Idea 1 on page 53. Save your file in your Python Code folder.

Homework 1.Play the Light-Bot game here: Take a screen shot of where you got to in 30minutes and send it to your teacher. 3.Stop if you have other homeworks to do! [ slide 4 ]

Lesson Summary [ slide 5 ] In this lesson you have: 1.learn about functions 2.written your own functions 3.used your own functions Vocabulary You now know what a function is but what Python keyword is required? What does hacking mean? What is an argument? Information required by a function Re-writing bits of existing code to change what it does def