Programming In Python. Starter Using the internet… Find what a programming language is.

Slides:



Advertisements
Similar presentations
Programming in python Lesson 2.
Advertisements

Program Design and Development
Pseudocode.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Pseudocode.
Chapter 3 Planning Your Solution
PROGRAMMING In. STARTER Using the internet…Find …  what does “case sensitive” mean  what a programming language is..  3 benefits of Python.
CS102 Introduction to Computer Programming
PHP: Hypertext Processor Fred Durao
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Sw development1 Software Development 1.Define the problem (Analysis) 2.Plan the solution 3.Code 4.Test and debug 5.Maintain and Document.
Hello World 2 What does all that mean?.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
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.
Python Programming Introduction to programming using python.
PhD, Senior Lecturer, Baimuratov Olimzhon A LGORITHMS & P ROGRAMMING (P YTHON ) Lecture 1 From SDU:
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Computer Programming TCP1224 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
Input, Output, and Processing
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.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Week 1 - Friday.  What did we talk about last time?  Our first Java program.
Python From the book “Think Python”
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Lesson 6. Python 3.3 Objectives. In this lesson students will learn how to output data to the screen and request input from the user. Students will also.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
Pseudocode Simple Program Design Third Edition A Step-by-Step Approach 2.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
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.
PROGRAMMING In. Objectives  We’re learning to develop basic code with the use of the correct syntax and variables. Outcomes  Explain what syntax is.
Variables, Expressions and Statements
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
The single most important skill for a computer programmer is problem solving Problem solving means the ability to formulate problems, think creatively.
1 Overview of Programming Principles of Computers.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
Chapter 1: Introduction to Computers and Programming.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
Getting Started With Python Brendan Routledge
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
GCSE COMPUTER SCIENCE Practical Programming using Python
Input and Output Upsorn Praphamontripong CS 1110
GCSE COMPUTER SCIENCE Practical Programming using Python
Fill the screen challenge!
Unit 1: Introduction Lesson 1: PArts of a java program
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
PYTHON: BUILDING BLOCKS Sequencing & Selection
ICT Programming Lesson 1:
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Programming In.
Introduction to Python
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.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
Global Challenge Walking for Water Lesson 2.
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Programming In Python

Starter Using the internet… Find what a programming language is

Lesson Outcomes All-Level 4- State what a programming language is and what a program is. Explain what syntax is and why indentation is so important With help, get half marks on the test (6) Most-Level 5- With help, 75% on the test (9) Some-Level 6- Independently complete the test and get maximum marks

Python Python is a programming language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks.computer The term programming language usually refers to high-level languages, such as BASIC, C, C++, Python etc high-level languagesBASICCC++ Each language has a unique set of keywords (words that it understands) and a special syntax for organizing program instructions.languagekeywordssyntaxprograminstructions

What is a program A program is a sequence of instructions that specifies how to perform a computation. The computation might be something mathematical, such as solving a system of equations It can also be a symbolic computation, such as searching and replacing text in a document or (strangely enough) compiling a program.

What is a program The details look different in different languages, but a few basic instructions appear in just about every language: Input-Get data from the keyboard, a file, or some other device. Output-Display data on the screen or send data to a file or other device. Math-Perform basic mathematical operations like addition and multiplication. Conditional execution-Check for certain conditions and execute the appropriate sequence of statements. Repetition-Perform some action repeatedly, usually with some variation.

What is a program Thus, we can describe programming as the process of breaking a large, complex task into smaller and smaller subtasks That may be a little vague, but we will come back to this topic later when we talk about algorithms.

Task 1 Open up python IDLE Type in 5 Type 5+6 Type in print(“hello”)

Task 2 Using the internet… Find what syntax means in relation to programming

Syntax In computer science, the syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be correctly structured programs in that language.computer science programming language programs Aka syntax means that special key words and characters combine to result in a program.

Syntax In any programming language you have to use the correct syntax. E.g. print(“hello”) works. However these do not work print hello print (hello) Python is also case sensitive. What is case sensitive? e.g print(“hello”) works PRINT(“hello”) does not.

Syntax Syntax highlighting Syntax highlighting and indent style are often used to aid programmers in recognizing elements of source code. Colour coded highlighting is used in this piece of code written in Python.indent style Python

Task 3 Complete Task sheet 3

Self Evaluation Task Save the Self Evaluation Task. Have a look at the outcomes of the lesson. Write down the level you got this lesson Self evaluate your progress this lesson and write your Level and your Student Next Step.

Plenary Python is a A vocabulary and set of grammatical rules for instructing a _________ to perform specific tasks. The term programming language usually refers to high-level languages, such as BASIC, C, C++, Python etc high-level languagesBASICCC++ Each language has a unique set of keywords (words that it understands) and a special _______ for organizing program instructions.languagekeywordsprograminstructions programming language Syntax Computer

Plenary A _________ is a sequence of instructions that specifies how to perform a computation. The computation might be something _____________, such as solving a system of equations It can also be a symbolic computation, such as searching and replacing text in a document or (strangely enough) compiling a program. Language Mathematical

Plenary The details look different in different ______________, but a few basic instructions appear in just about every language: Input- Get data from the keyboard, a file, or some other device. _______- Display data on the screen or send data to a file or other device. Math- Perform basic mathematical operations like addition and multiplication. Conditional- execution Check for certain conditions and execute the appropriate sequence of statements. __________- Perform some action repeatedly, usually with some variation. Languages Output Repetition

Plenary Every program you’ve ever used, no matter how complicated, is made up of ___________ that look more or less like these. That may be a little vague, but we will come back to this topic later when we talk about ____________. Instructions Algorithms

Acknowledgments Some resources and lessons were taken from