PYTHON: BUILDING BLOCKS Inputs & Outputs

Slides:



Advertisements
Similar presentations
PROGRAMMING In. STARTER Using the internet…Find … what does case sensitive mean what a programming language is.. 3 benefits of Python.
Advertisements

Lesson 1: Setting up a 2d game 9.5 Lesson Slides.
Computing Theory: BBC Basic Coding Year 11. Lesson Objective You will: Be able to define what BBC basic is Be able to annotate BBC basic code Be able.
Python Programming Introduction to programming using python.
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.
Do it now activity Last term we learnt about how data is represented in a computer and about how to identify different volumes of data. How many bits in.
Super Hero Databases Lesson 2. Lesson 2 Aims… To know different data types. To understand why it is important to put the correct data in the correct data.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
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,
PROGRAMMING In Lesson 2. STARTER ACTIVITY Complete the starter activity in your python folder – lesson 2 Now we will see how you got on and update your.
Python Programming Using Variables and input. Objectives We’re learning to use basic knowledge of variables combined with user input. Outcomes Continue.
My Python Programmes NAME:.
Printing and Speaker Notes Presentation Authoring.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Programming In Python. Starter Using the internet… Find what a programming language is.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
Getting Started With Python Brendan Routledge
KEY STAGE 3 ICT Databases – Lesson 2. Recap of keywords – Task 2A In your workbooks from last lesson What is a database? A DATABASE is a collection of.
Make a function This is a starter activity and should take 5 minutes [ slide 1 ] >>> def count(number): n=1 while n
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Programming – Algorithms (Flowcharts)
Component 1 Logical operators.
Whatcha doin'? Aims: To start using Python. To understand loops.
LESSON 2 AIM: Review a game. Comment on what makes a game good.
Lesson 1 - Sequencing.
Introduction to Python
Lesson 4 - Challenges.
Lesson 1 An Introduction
Variables, Expressions, and IO
Lesson 3 - Repetition.
Writing my algorithm ? Name Symbol Flowchart use Oval
Learning to Program in Python
Fill the screen challenge!
Today’s lesson – Python next steps
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Communication and technology
Programming In Lesson 3.
DO NOW – Decompose a Problem
Lesson 6: End of Unit Assessment
WELCOME TO MIDHURST ROTHER COLLEGE Getting Started in Computer Science
Lesson 2: Binary to Denary Conversion.
7.2 Hardware Inside the Computer
Lesson 1: Introduction to Binary
What is a Computer? Understand what a computer is

Global Challenge Walking for Water Lesson 2.
PAST, PRESENT & FUTURE OF COMPUTING End of Unit - Presentation
7.2 Hardware Storage Devices
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
COMPUTATIONAL THINKING END OF UNIT ASSESSMENT
Lesson 3: Denary to Binary Conversion.
PYTHON: BUILDING BLOCKS Sequencing & Selection
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Programming In Lesson 4.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
For Tutors Introduce yourself.
Global Challenge Walking for Water Lesson 2.
Programming In.
Introduction to Python
Hint idea 2 Split into shorter tasks like this.
Starter Which of these inventions is: Used most by people in Britain
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
CMPT 120 Lecture 4 – Unit 1 – Chatbots
Create Folder Unit 5 (All work for this unit to be stored here)
Presentation transcript:

PYTHON: BUILDING BLOCKS 8.2.2 - Inputs & Outputs Year 8 Computer Science - Midhurst Rother College

STARTER CHALLENGE Chatbot 2000 is a program designed to talk to you. The teacher will play the program now and chatbot 2000 will ask you some questions about how he was created.

LESSON OBJECTIVES Be able to define the terms input and output. Implement these in python.

INPUT When we put information / data into the program. Used as otherwise code could never get any new information. This could be from a person or could be from a file or another program. Once it’s in the program it’s stored in a variable.

CLASS DISCUSS: What data / information could we input for these programs: Instagram Facebook Your Favourite Game THINK: about ideas on your own. PAIR: discuss your thoughts with the person next to you. SHARE: your thoughts with the rest of the class.

OUTPUT When the program gives us information back. Used as otherwise we’d never know what our program does! Could be to a monitor, speaker, file, printer etc… Doesn’t mean it’s no longer stored in the program. Can be both temporary (a song from speakers) or permanent (a printed page, a saved file).

CLASS DISCUSS: What data / information would be output for these programs: Instagram Facebook Your Favourite Game THINK: about ideas on your own. PAIR: discuss your thoughts with the person next to you. SHARE: your thoughts with the rest of the class.

YOUR TASK Start the tasks in the 8.2.2 chatbot task sheet found on rother-net.co.uk. Work your way through from mild to hot Remember in your workbook to: Read the work carefully. Open any other tasks needed. At the end of a lesson in the box for this topic add a screenshot of the most complex task you got working. Update your keyword table.

TASK DISCUSS: Which heat level did you reach? How long is your program? Who created the best chatbot?

YOUR EVIDENCE Remember in your workbook to: In the box for this topic add a screenshot of the most complex task you got working. Write a short paragraph of what you learnt this lesson. Did you face any challenges? How did you overcome them? Did you face any errors (e.g. syntax)? How did you find and correct them? Update your keyword table.

THINGS TO REMEMBER From the unit so far, you need to remember what the following mean: Algorithm Variable Function Input / Output Can you remember?

Code the conversation on the board. “Hello” “What’s your name?” “It’s great to meet you Phil!” “Do you like pizza?” “No?!? I don’t believe it!” “Do you like coke?” “Yes? You need to brush your teeth!” “Thanks for talking to me Phil.” PLENARY Code the conversation on the board.