For -G7 programing language Teacher / Shamsa Hassan Alhassouni.

Slides:



Advertisements
Similar presentations
PROGRAMMING In. STARTER Using the internet…Find … what does case sensitive mean what a programming language is.. 3 benefits of Python.
Advertisements

Follow the man….. Read the phrases on the shimmering neon lights and write down the correct economic term to match that phrase.
Al-Karma Language School Computer Department Prep. 3.
Beginning Data Manipulation HRP Topic 4 Oct 19 th 2011.
Lesson 17: Objective: Relate decimal and fraction multiplication
Review Algorithm Analysis Problem Solving Space Complexity
Chapter 1 Pseudocode & Flowcharts
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 – Making Decisions Lecture 02. Control Structures A program that only has one flow is useful but limited. We can use if statements to make these.
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
By the end of this session you should be able to...
Conditions. Objectives  Understanding what altering the flow of control does on programs and being able to apply thee to design code  Look at why indentation.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
CHAPTER#3 PART1 STRUCTURED PROGRAM DEVELOPMENT IN C++ 2 nd semester King Saud University College of Applied studies and Community Service Csc.
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
Spreadsheets Lesson 2 Introduction to basic formula and spreadsheet.
Chapter#3 Part1 Structured Program Development in C++
The If Statement There are no switch statements in Python. You need to use just if statements. There are no switch statements in Python. You need to use.
3.1.3 Program Flow control Structured programming – SELECTION in greater detail.
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
GCSE COMPUTER SCIENCE Practical Programming using Python
Basic concepts of C++ Presented by Prof. Satyajit De
Whatcha doin'? Aims: To start using Python. To understand loops.
3.1 Fundamentals of algorithms
Input and Output Upsorn Praphamontripong CS 1110
Inequalities and their Graphs
Inequalities and their Graphs
Making Choices with if Statements
Design & Technology Grade 7 Python
Introduction to Programming
Variables, Expressions, and IO
G7 programing language Teacher / Shamsa Hassan Alhassouni.
To write a Python program, you first need to open Pyscripter
Computational Thinking
Computational Thinking
Iterations Programming Condition Controlled Loops (WHILE Loop)
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Computer Science and an introduction to Pascal
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Selection CIS 40 – Introduction to Programming in Python
Inequalities and their Graphs
exa.im/stempy16.files - Session 12 Python Camp
Learning to Program in Python
Procedures.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
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.
Program Flow Control Selection & repetition
flow charts and system diagrams
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Hello World! Syntax.
Introduction to Programming
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Chapter 5: Control Structure
Inputs and Variables Programming Guides.
Adding Intelligence Check for the presence or absence of a condition in the environment Take the appropriate actions Involves making a choice (to do or.
Please complete these tasks before
Start or end of algorithm: Action/process step:
Basic Lessons 5 & 6 Mr. Kalmes.
Emulsions.
Introduction to Python
Introduction to Programming
C++ Basics CSci 107. A C++ program //include headers; these are modules that include functions that you may use in your //program; we will almost always.
Starter Activities GCSE Python.
I am a student. We are students. You are a student. You are students. He is a student. She is a student. It is a student. They are students.
What’s your nationality? Where are you from?
Control Structures.
Presentation transcript:

For -G7 programing language Teacher / Shamsa Hassan Alhassouni

Decrypt Good Answer.. Well Done.. Teacher If the student answer the question correctly.. She will get a gift from her teacher

What we will Learn today? Understand IF statements Understand the syntax for using if statements in Python Understand other comparison operations in Python Work on flow charts Practical tasks

IF Statement Using If statements gives two or more possible choices that a program can follow

Think .. & give us another example ?? How many cases do I have in the traffic light case ? Think .. & give us another example ??

In your group draw the flowchart as requested Think – Work in group & Share In your group draw the flowchart as requested

Discover more through your practical activity NO Task Completed Not Completed 1 Open the python edu 2 Select ‘the existing project named (grade7-1) 3 Click file > new > python file 4 Give the python file a name. (L6 - Name) 5 Type the following: 6 Run your program and type maryam what you will get as an output.. 7 Type another name.. What will be the output

IF statement Syntax in Python We use == operator to check the if statement in python Think.. Conclude.. What is the difference between the following sentences : Num1 = 5 Num1 == 5 = used to set a value == used for comparison between two variables

Comparison Operations in Python

Answer the following questions Quick Quiz Answer the following questions When we will compare between two variables which operator we are going to use : == = != 2. The operator used to define greater than or equal in python is : > <= >= 3. The syntax for writing if statements in python is If name == ‘alia’ : Print (“hello”) If name == “alia” : If name == “alia” Print (“hello” 4. The operator used to define not equal in python is: /=

Super Student Task.. Create a program to ask the user about his car speed If speed is more than 80 then the following message should appear “slow down.. Too fast”

If you are done with your class activity.. Closing.. If you are done with your class activity.. print (“I am an Excellent Student” )

How easy did find the today’s lesson in python?