Starter Activities GCSE Python.

Slides:



Advertisements
Similar presentations
Using the What Am I Template Copy the presentation to your hard drive. Open the slides using slide sorter and copy slides #3, 4 and 5 for each question.
Advertisements

How to answer Section B (January 2012 example) YEAR 12 REVISION.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
Python Programming Using Variables and input. Objectives We’re learning to make use of if statements to enable code to ask questions. Outcomes Build an.
General Programming Introduction to Computing Science and Programming I.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
 We are going to learn about programming in general…How to think logically and problem solve. The programming language we will use is Python. This is.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
1 Quiz Template: Using the ‘ask user’ functions By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 2009.
Introduction to compilation process March 24. The following slides will show you step by step instruction how to get ready and build C language programs.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
Python Fundamentals: Hello World! Eric Shook Department of Geography Kent State University.
GCSE COMPUTER SCIENCE Practical Programming using Python Lesson 4 - Selection.
GCSE COMPUTER SCIENCE Practical Programming using Python
ECDL ECDL is an important building block, equipping you with the digital skills needed to progress to further education and employment. ECDL teaches you.
GCSE COMPUTER SCIENCE Practical Programming using Python
EET 2259 Unit 13 Strings and File I/O
GCSE COMPUTER SCIENCE Practical Programming using Python
Introduction to Computing Science and Programming I
Unit 9.1 Learning Objectives Data Access in Code
Introduction to Programming
Lesson 1 - Sequencing.
Student SOLE Page – Living Page
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
Topics Introduction to Repetition Structures
Data Validation and Protecting Workbook
PROJECT 7 SPREADSHEETS WITH DATA CAPTURE—MINIVAN EXAMPLE
Programming Mehdi Bukhari.
IF statements.
Design and Technology Academic Year 2017/2018 Grade 7 First Semester.
Topics Introduction to Repetition Structures
Engineering Innovation Center
Little work is accurate
Some Tips for Using Eclipse
Python I/O.
File Handling Programming Guides.
Learning to Program in Python
Starter 15//2 = 7 (Quotient or Floor) (Modulus) 22%3 =1
Use a simple business spreadsheet provided by the centre
Learning Outcomes –Lesson 4
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
Teaching London Computing
Do While (condition is true) … Loop
Topics Introduction to Repetition Structures
Logical Operations In Matlab.
Starting Out with Programming Logic & Design
Chapter 5: Control Structure
A look at Python Programming Language 2018.
Using the What Am I Template
Introduction to Repetition Structures
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Flowcharts and Pseudo Code
Programming In Lesson 4.
Topics Introduction to Repetition Structures
IPC144 Introduction to Programming Using C Week 4 – Lesson 2
Making decisions with code
Getting started – Example 1
EET 2259 Unit 13 Strings and File I/O
Java Lessons Mr. Kalmes.
Starter Which of these inventions is: Used most by people in Britain
EE 312 Exam I Review.
Hardware is… Software is…
Lecture 20 – Practice Exercises 4
Module 4 Loops and Repetition 9/19/2019 CSE 1321 Module 4.
Lecture 20 – Practice Exercises 4
EE 312 Exam I Review.
Presentation transcript:

Starter Activities GCSE Python

Starter 1: Basics Use Python to work out what these will print to screen. Write code to display your name five times with one print statement. Write code to display ‘BANANA’ by typing ‘AN’ only once.

Starter 2: Basics This makes the value ‘x’ into a string so it is a word, not a number. Change the code so the printed answer is correct. When printing strings we can use special characters. What will be the result of running this code? What do \n and \t do?

Starter 3: Basics What will happen if I run this code? What data type is shown here? What is the result of running this code? What does the mathematical operation on Line 13 do?

Starter 4 What will be the result of running this code and entering 5? Make any necessary changes to make the code work.

Starter 5 I want to assign the value 158.94 to represent how tall I am in cm. Is this correct? Explain your answer and make any corrections needed. What data type should I use to represent my height in my program?

Starter 6 What will be the result of running this code and entering 52?

Starter 7 I do not like tea or bacon for breakfast. How can I edit the code (without deleting any breakfast items) to print out my choices AND tell the restaurant staff the items I do not like?

Starter 8 What will be printed to screen when the code is run?

Starter 9 This is the result of running this code: Amend the code to get this result: –15, – 10, – 5, 0, 5

Starter 10 I want to write a function called daysInMonth which calculates the days in a given month. How do I start this in Python? What should I add before I start writing the actual code?

Starter 11 Call this function with the arguments 5 and 4. What will happen if I change the arguments to ‘Woo’ and 5? What will happen if I change the arguments to ‘Woo’ and ‘Hoo’?

Starter 12 What is the difference between a parameter and an argument? Label the code to show which is which.

Starter 13 True or False? 7 == 9 8 != 9 5 > 4 6 <= 7 (7 + 5) != 12 a = False, b = True, (5 < 7) == b (3 + 5 > 2 + 6) == False

Starter 14 Draw a flow chart to represent this code.

Starter 15 This code contains errors. Identify the line numbers and explain the errors.

Starter 16 Explain what happens to the two variables, count and total, when the code is executed. What corrections need to be made for it to work correctly?

Starter 17 Look at the code. This does not work correctly at the moment. Explain what corrections need to be made.

Starter 18 This code does not work correctly. There are two ways in which it could be corrected.

Starter 19 Complete the code so that it will check whether the number entered is in the array. There are other errors in the code. Correct them.

Starter 20 Explain what happens when this code is executed. Can you explain why? Edit the code to print all letters.

Starter 21 Edit the code so that you can add the following details to the list: Need for Speed – The Run, 4* Now print out each game and rating on a different row.

Starter 22 Study the code below carefully. Look at what is happening when the code is executed. Why is the function asking me for more than three choices? What changes do I need to make to the code to correct it? (Write on the sheet) Can you explain in technical terms why this error is happening? (See next slide)

Starter 22 (code)

Starter 23 Open Notepad or any text editor, and write a list of these five items and save it. tablet, smartphone, laptop, charger, portable drive Write a function to read the file into an array. Starting with ‘tablet’, print the odd items in the array.

Starter 24 Lists in Python are also known as arrays. Arrays can be two-dimensional like the example shown.  Write the function to create this two-dimensional array of ‘0’s (measuring 5 rows by 5 columns). Make sure you use the most efficient method of doing this. Write the function to print out the 2D array in this format.