Mini Python Project Lesson 3.

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age
Advertisements

Main task -write me a program
Unit 4.4 We are HTML Editors
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
1. Understand the application of Pseudo Code for programming purposes 2. Be able to write algorithms in Pseudo Code.
READING AND WRITING FILES. READING AND WRITING FILES SEQUENTIALLY  Two ways to read and write files  Sequentially and RA (Random Access  Sequential.
Computer Programming I Module This lesson illustrates how to code for arrays used to store data and how to display your data in listboxes.
Documentation and Style. Documentation and Comments  Programs should be self-documenting.  Use meaningful variable names.  Use indentation and white.
Python Let’s get started!.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Introduction to Text Based Coding. We’re learning to explore how text based programming works You will display and enter text into a window You will use.
The Accumulator Pattern Summing: Add up (“accumulate”), e.g. 1 2 plus 2 2 plus 3 2 plus … plus Variation: Form a product (instead of sum), e.g.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
Idioms By Mauricio Fuentes. O Grade: High school O Number of students 25 O Level of English middle high O Lenght- 90 min O Type of lesson- ppp Class information.
Arrays and variables 1.Representing tables as arrays in MATLAB 2.Concept of array dimension 3.Correspondence of array dimension to rows and columns 4.Picking.
Magic 8 ball. "Design and write a python program that emulates a Magic Eight Ball. Your program should continually prompt the user to enter a question.
Programming Basics - RobotC Introduction to Robotics.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 10: Files.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
Component 1.6.
A-level Computing Fizzbuzz programming challenge
what is computer programming?
Computer Programming.
Computer Science A-level
Python Let’s get started!.
A451 Theory – 7 Programming 7A, B - Algorithms.
Chapter 3 Machine Language and Assembly Language.
Chapter 3 Machine Language and Assembly Language.
MIPS assembly syntax Comments
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Engineering Innovation Center
TRANSLATORS AND IDEs Key Revision Points.
Computer Programming Machine and Assembly.
Fill the screen challenge!
File Handling Programming Guides.
Databases Lesson 2.
Log onto a computer first then ….
LO To write equivalent expressions RAG
LO To Solve Equations RAG Key Words; Unknown, Solve 1-Dec-18
Learning Outcomes –Lesson 4
Learning to Program in Python
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.
Programming Basics - RobotC
COMPUTER PROGRAMMING PYTHON
Plenary
Spot the bug!.
L.O. All pupils can represent a variety of numerical facts in symbols
Learning to Program in Python
Documentation and Style
Day 2 GIS 4 U Mastering the Map.
IPC144 Introduction to Programming Using C Week 4 – Lesson 1
What is the purpose of the following businesses?
PYTHON LESSON 5 Mr. Kalmes.
Python Programming Mr Scicluna.
What is the question? The answer is -2
Introduction to Python
Introduction to Python programming for KS3
How to organise your code
Do it now – PAGE 3 You will find your do it now task in your workbook – look for the start button! Thursday, 23 May 2019.
Python Lessons 7 & 8 Mr. Husch.
Summarise your learning in two sentences.
Python 4 and 5 Mr. Husch.
Year 8 Computer Science Digital Portfolio
Process Information People Successful Systems Implementation
Computer Science A-level
Introduction to Computer Science
Presentation transcript:

Mini Python Project Lesson 3

Objectives LO1: Pupils learn what basic lists are and how to apply them to use in Python. LO2: Application of modules and comments in Python LO3: Creation of a fortune teller in Python using previously learnt knowledge and new learning form the lesson.  

List in Python A list of data Separated by commas In square brackets Can be called upon by their address. The first item in a list being 0. It is possible to change the values in a list. Note that for the purpose of our mini python project this is all we need to know about lists.

Import Statement and modules What are modules? Modules are files that contain code meant to be used in other programs. What’s the import statement? Something that allows you to import, or load, modules.

Commenting on code How? To add a comment you simply put the # symbol in front of what you want to write. The # symbol means the computer completely ignores it

Commenting on code Why is it important? -explain the programming in English -invaluable to other programmers to help them quickly understand your code. -helpful to you to remind you how you accomplished something

Today’s Task