OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.

Slides:



Advertisements
Similar presentations
Downloading a multiple alignment for your region of interest from the UCSC Genome Browser ( that can be uploaded in ConTra for.
Advertisements

COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Copyright © 2014 Dr. James D. Palmer; This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Recitation 1 Programming for Engineers in Python.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Thanks to: Dr. John S. Mallozzi Department of Computer Science 1. Introduction 2. Overview of programming in Python.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
The Python interpreter CSE 140 University of Washington Michael Ernst.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
 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.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 12: A few other things.
Lesson 4 Using Variables in Python – Creating a Simple ChatBot Program.
Getting Started With Stata Session 1 Jim Anthony John Troost Department of Epidemiology Michigan State University.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
Programming for GCSE 1.0 Beginning with Python T eaching L ondon C omputing Margaret Derrington KCL Easter 2014.
IDLE An IDE for Python bundled with the program release Click on IDLE (Python GUI) in the Start menu under the Python program group  Get the IDLE Python.
You Need an Interpreter!. Closing the GAP Thus far, we’ve been struggling to speak to computers in “their” language, maybe its time we spoke to them in.
Parsing BLAST output. Output of a local BLAST search “less” program Full path to the BLAST output file.
All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.
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.
Introduction to Programming Python Lab 1: My First Program 8 January PythonLab1 lecture slides.ppt Ping Brennan
Exploring Spyder: An IDE for scientific computing
1/10/2008. >>> About Us Paul Beck * Third quarter TA * Computer Engineering * Ryan Tucker * Second quarter TA * Computer.
Introduction to Programming Python Lab 5: Strings and Output 05 February PythonLab5 lecture slides.ppt Ping Brennan
Introduction to Programming
Creating and Using Modules Sec 9-6 Web Design. Objectives The student will: Know how to create and save a module in Python Know how to include your modules.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 3: Built-in functions.
8/2/07. >>> About Me Scott Shawcroft * Junior * Computer Engineering * Third Quarter TA * Creative Commons Intern * Small-time Open Source Developer
HTML is the language that allows text and graphics to be displayed as Web pages. It is a set of special codes, called tags, that tells a browser application.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 10: Files.
Introducing Python 3 Introduction to Python. Introduction to Python L1 Introducing Python 3 Learning Objectives Know what Python is and some of the applications.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
Introduction to Programming
Introducing Python Introduction to Python.
Development Environment
CST 1101 Problem Solving Using Computers
Introduction to Programming
A Playful Introduction to Programming by Jason R. Briggs
Introduction to Programming
Introduction to Programming
Introduction to Programming
Introduction to Programming
Introduction to Programming
Introduction to Programming
Week 1 Computer Programming Year 9 – Unit 9.04
Lesson Aims Vocabulary In this lesson you are going to:
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Introduction to Programming
To insert this slide into your presentation
Scripts In Matlab.
To insert this slide into your presentation
Beginning Python Programming
To insert this slide into your presentation
Python 16 Mr. Husch.
Introduction to Programming
12th Computer Science – Unit 5
Input and Output Python3 Beginner #3.
Introduction to Python
To insert this slide into your presentation
To insert this slide into your presentation
The Python interpreter
Starter Which of these inventions is: Used most by people in Britain
To insert this slide into your presentation
To insert this slide into your presentation
Presentation transcript:

OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs

OCR Computing GCSE © Hodder Education 2013 Slide 2 Python 4: Writing programs You can write programs with any text editor such as Notepad. It is easier to use an Integrated Development Environment like IDLE.

OCR Computing GCSE © Hodder Education 2013 Slide 3 Python 4: Writing programs IDLE looks a bit like the command line but it has a menu at the top. The first thing to do is to choose File – New Window

OCR Computing GCSE © Hodder Education 2013 Slide 4 Python 4: Writing programs We then get a window where we can write a program. It is called Untitled until we save it. Here is the traditional Hello World program. We have saved it as hello.py. The py extension is so that the Python interpreter will know it is a Python program.

OCR Computing GCSE © Hodder Education 2013 Slide 5 Python 4: Writing programs We run the program with the Run Module command on the menu, or we can press F5. Here is the output in the Python shell. It is also possible to run the program straight from the operating system.

OCR Computing GCSE © Hodder Education 2013 Slide 6 Python 4: Writing programs We should always annotate code. Anything after the # symbol on a line is ignored by the interpreter, but it can be useful for humans.

OCR Computing GCSE © Hodder Education 2013 Slide 7 Python 4: Writing programs Escape sequences help us to format output. Here is the output: \t inserts a tab space. \n inserts a new line.