GCSE Computing.

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
Advertisements

Python Magic Select a Lesson: Why Learn to Code? Basic Python Syntax
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
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.
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.
Decimals Day 2 Multiply and Divide Decimals. DO NOT line up decimals Multiply with first number, then continue with next number Place decimal point in.
GCSE Computing: Programming GCSE Programming Remembering Python.
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
Getting Started With Python Brendan Routledge
Make a function This is a starter activity and should take 5 minutes [ slide 1 ] >>> def count(number): n=1 while n
Input, Output and Variables GCSE Computer Science – Python.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
GCSE COMPUTER SCIENCE Practical Programming using Python Lesson 4 - Selection.
DEVRY CIS 170 C I L AB 5 OF 7 A RRAYS AND S TRINGS Check this A+ tutorial guideline at
Few More Math Operators
Introduction to Programming
CS 106A, Lecture 4 Introduction to Java
Excel Activity 9: Quiz Scores
GCSE COMPUTER SCIENCE Practical Programming using Python
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
while Repetition Structure
Week 4 Computer Programming Gray , Calibri 24
Data Types and Conversions, Input from the Keyboard
Basic operations in Matlab
To write a Python program, you first need to open Pyscripter
Department of Computer Science University of Calgary
Python Lesson 6 Mr. Kalmes.
Dance Cards Dance Cards
Week 5 Computer Programming Gray , Calibri 24
Use proper case (ie Caps for the beginnings of words)
Dance Cards Dance Cards
More Loops.
Dance Cards Dance Cards
Learning Outcomes –Lesson 4
Week 5 Computer Programming Year 9 – Unit 9.04
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Lesson Aims Vocabulary In this lesson you are going to:
4.1 Strings ASCII & Processing Strings with the Functions
Week 4 Computer Programming Year 9 – Unit 9.04
Dance Cards Dance Cards
Divide the number in C by 10.
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Dance Cards Dance Cards
Python 19 Mr. Husch.
Using Script Files and Managing Data
Dance Cards Dance Cards
Beginning Python Programming
= x 2 = = 20 4 x 5 = = 16 4 x 4 = = 18 6 x 3 = = 12 2 x 6 = 12.
Dance Cards Dance Cards
Microsoft Office Excel 2003
Dance Cards Dance Cards
Input and Output Python3 Beginner #3.
Python Inputs Mr. Husch.
Python 19 Mr. Husch.
GCSE Computing:: While Loops
Starter Activities GCSE Python.
WJEC GCSE Computer Science
Dance Cards Dance Cards
GCSE Computing.
GCSE Computing.
GCSE Computing.
Python Creating a calculator.
Dance Cards Dance Cards
Presentation transcript:

GCSE Computing

Game Over 2.0 - developments print(“same ”, “message “) print(“Just “, “a bit”, “bigger”) #computer only reads one line. print( “”” a number of lines, ASCII Art http://www.asciiworld.com print(“Here”, end=“ “) not onto a new line \t = tab \\ = \ \’ = ‘ \”=“ \a = system bell \n = new line

Concatenate + formulae print(“concatenate two ” + “strings with ‘+’ operator”) print(“Pie” * 10) print(2000-100+50) print(“\nIf a restaurant bill comes to £19 with tip between 4, the cost is?”) input(“\nPress a key to find out.”) print(“\n19 / 4 =“, 19/4) +, -, *, / //(integer), % (modulus/remainder)

Python – 1st Tutorial “Game Over” Apply skills Write a program in script mode displays the following: Sprint Training Run 1 (sec) = 10.42 Run2 (sec) = 10.13 Run 3(sec) = 9.98 Press Enter to view average time Average time (sec) =, answer Make sure that you add a line of code to delay the program until the user presses a key. You must enter code to display the average (All times divided by 3)