Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Programming In Python. Starter Using the internet… Find what a programming language is."— Presentation transcript:

1 Programming In Python

2 Starter Using the internet… Find what a programming language is

3 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

4 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

5 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.

6 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.

7 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.

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

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

10 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.

11 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.

12 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

13 Task 3 Complete Task sheet 3

14 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.

15 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

16 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

17 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

18 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

19 Acknowledgments Some resources and lessons were taken from http://www.pythonsummerschool.net/


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

Similar presentations


Ads by Google