1. The document outlines an agenda for a lesson on Python programming. It includes a warm-up, presentations on Python fundamentals, a video, practical work in pairs or online, questions and answers, and assigning homework involving Python.
2. Students will learn about logical operators, conditional statements, functions, and creating a simple program using these concepts in Python. They will also learn how to install and use Anaconda or other Python platforms.
3. For homework, students are asked to design a flowchart for an Arduino circuit to save energy using logical operators, conditional statements, and a function with parameters in a Python program.
Learning Outcome: 1- Gain knowledge and understanding the meaning of computer language? 2- Draw conclusions about concepts: data types, variables, Conditional statements, looping statements, functions and Object Oriented Programming.
Key Concepts: 1- Concept of computer language. 2- Concept of different data types, variables, Conditional statements, looping statements, functions and Object Oriented Programming.
Skills: At the completion of the program, students should be able to: 1- understand the structure of the program. 2- Design some programs include different data types, variables, Conditional statements and looping statements. 3- Compile the program (Run).
Essential Questions: 1- What is meant by programming language and give some examples? 2- What are the key features or characteristics of language? Textbook and Resource Materials: https://www.w3schools.com
Evidence of Learning: Create a presentation contains some concepts of computer languages and display the Concepts of different data types, variables, Conditional statements, looping statements, functions and Object Oriented Programming.
SEC Topic & Code: Using appropriate programming language to produce a project that solves societal or learning problem creatively
Programming intro variables constants - arithmetic and assignment operators
part 1 Python basics
https://youtu.be/ouTXjzL2qHc
part 2 Python Data Types , Variables and arithmetic Expressions
https://youtu.be/r6bxIqkSJ8w
part 3 Python Data Types
https://youtu.be/au_xwGULCQE
part 4 Python Variables
https://youtu.be/J_aUFaOGHWc
Part 5 Python Variables in Solutions of Quadratic equation
https://youtu.be/2Hn2qtz0Y5c
part 6 Python meaning of computer Language
https://youtu.be/0bDlELqfa9A
part 7 Python using NumPy to solve a system of linear scalar equations in matrix for Kirchhoff
https://youtu.be/gF2zueHAcy4
Part 8 Python integrating Quadratic equation
https://youtu.be/Gla2DZropIc
part 9 Python integrating and or differentiating polynomial functions in math
https://youtu.be/KGKF2mHnDOA
Learning Outcome: 1- Gain knowledge and understanding the meaning of computer language? 2- Draw conclusions about concepts: data types, variables, Conditional statements, looping statements, functions and Object Oriented Programming.
Key Concepts: 1- Concept of computer language. 2- Concept of different data types, variables, Conditional statements, looping statements, functions and Object Oriented Programming.
Skills: At the completion of the program, students should be able to: 1- understand the structure of the program. 2- Design some programs include different data types, variables, Conditional statements and looping statements. 3- Compile the program (Run).
Essential Questions: 1- What is meant by programming language and give some examples? 2- What are the key features or characteristics of language? Textbook and Resource Materials: https://www.w3schools.com
Evidence of Learning: Create a presentation contains some concepts of computer languages and display the Concepts of different data types, variables, Conditional statements, looping statements, functions and Object Oriented Programming.
SEC Topic & Code: Using appropriate programming language to produce a project that solves societal or learning problem creatively
Programming intro variables constants - arithmetic and assignment operators
part 1 Python basics
https://youtu.be/ouTXjzL2qHc
part 2 Python Data Types , Variables and arithmetic Expressions
https://youtu.be/r6bxIqkSJ8w
part 3 Python Data Types
https://youtu.be/au_xwGULCQE
part 4 Python Variables
https://youtu.be/J_aUFaOGHWc
Part 5 Python Variables in Solutions of Quadratic equation
https://youtu.be/2Hn2qtz0Y5c
part 6 Python meaning of computer Language
https://youtu.be/0bDlELqfa9A
part 7 Python using NumPy to solve a system of linear scalar equations in matrix for Kirchhoff
https://youtu.be/gF2zueHAcy4
Part 8 Python integrating Quadratic equation
https://youtu.be/Gla2DZropIc
part 9 Python integrating and or differentiating polynomial functions in math
https://youtu.be/KGKF2mHnDOA
Understand and interpret concept the loop statements and give some examples. • Students can design programs involving loop statements. • Gain knowledge and understanding of function of the loops inside the program. • Students can compare between loop statements , Iteration. , Loop structure, While - Do while, For - Loop control statement (start, end and step).
, Control all loops by break & continue statements, Infinite loop,Explain the different loops available in language with examples, Differ between loop control statement and the infinite loop , by Eng.&Educator Osama Ghandour
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...Edureka!
This Edureka "Python Loops" tutorial (Python Tutorial Blog: https://goo.gl/wd28Zr) will help you in understanding different types of loops used in Python. You will be learning how to implement all the loops in python practically. Below are the topics covered in this tutorial:
1) Why to use loops?
2) What are loops?
3) Types of loops in Python: While, For, Nested
4) Demo on each Python loop
Python Programming Course Lecture by IoT Code Lab Training.
Discussed Topic:
Chapter 0: Python Overview
0. Python Introduction
1. What is Python?
2. Story of Python
3. Why Python
4. Use of Python
5. Python Download + Installation
6. How to Use? + Online Course Resource
1. Variable, Data Type, Expression
1. Create First Python Program File
2. First Program - Hello World
3. Comment
4. Variable + Data Type + Example
5. Variable Naming Convention
6. Practice 0.1
2. Input/ Output
1. Input/ Output (String)
1. A String Input & Output
2. Display A Message in Print & Input function
3. Check Data Type
4. Practice 0.2
2. Input/ Output (Number)
1. An Integer Number Input & Output + Check Data Type
2. Type Conversion
3. A Float Number Input & Output + Check Data Type
4. Built-in Function with Example
5. Practice 0.3
3. Formatted Input Output
https://telecombcn-dl.github.io/2017-dlai/
Deep learning technologies are at the core of the current revolution in artificial intelligence for multimedia data analysis. The convergence of large-scale annotated datasets and affordable GPU hardware has allowed the training of neural networks for data analysis tasks which were previously addressed with hand-crafted features. Architectures such as convolutional neural networks, recurrent neural networks or Q-nets for reinforcement learning have shaped a brand new scenario in signal processing. This course will cover the basic principles of deep learning from both an algorithmic and computational perspectives.
Text Classification Powered by Apache Mahout and Lucenelucenerevolution
Presented by Isabel Drost-Fromm, Software Developer, Apache Software Foundation/Nokia Gate 5 GmbH at Lucene/Solr Revolution 2013 Dublin
Text classification automates the task of filing documents into pre-defined categories based on a set of example documents. The first step in automating classification is to transform the documents to feature vectors. Though this step is highly domain specific Apache Mahout provides you with a lot of easy to use tooling to help you get started, most of which relies heavily on Apache Lucene for analysis, tokenisation and filtering. This session shows how to use facetting to quickly get an understanding of the fields in your document. It will walk you through the steps necessary to convert your text documents into feature vectors that Mahout classifiers can use including a few anecdotes on drafting domain specific features.
Configure
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAMaulik Borsaniya
Introduction to Python:
The basic elements of Python, Objects, expressions and numerical Types, Variables and assignments, IDLE, Branching programs, Strings and Input, Iteration
Structured Types, Mutability and Higher-order Functions:
Tuples, Lists and Mutability, Functions as Objects, Strings, Tuples and Lists, Dictionaries
Boost your career with Python Programming Language at SSDN Technologies in Gurgaon. In this training you learn about Python basic to advance concept by industry expert. Register Now !!
Recurrent Neural Networks hold great promise as general sequence learning algorithms. As such, they are a very promising tool for text analysis. However, outside of very specific use cases such as handwriting recognition and recently, machine translation, they have not seen wide spread use. Why has this been the case?
In this presentation, we will first introduce RNNs as a concept. Then we will sketch how to implement them and cover the tricks necessary to make them work well. With the basics covered, we will investigate using RNNs as general text classification and regression models, examining where they succeed and where they fail compared to more traditional text analysis models. A straightforward open-source Python and Theano library for training RNNs with a scikit-learn style interface will be introduced and we’ll see how to use it through a tutorial on a real world text dataset
Cis 1403 lab1- the process of programmingHamad Odhabi
This lab aims to develop students knowledge and skills needed to create a simple programming code. It covers the process of developing computer programs starting from a simple analysis of the problem, identifying outputs, inputs, and design process/algorithm, convert algorithm to code, testing, and documentation. The student will be introduced to the Java program structure, numerical variable and high-level introduction to data types. The lab does not go into depth explaining the data types and memory storage. These will be discussed in the upcoming labs. Also, the student will be introduced to the REPL cloud environment that will be used to create a simple application.
Introduction to Prolog (PROramming in LOGic)Ahmed Gad
As part of artificial intelligence course given in faculty of computers and information, Prolog was the first tool to make intelligent decisions like making relations between different objects.
Prolog has a strong history in AI starting in 1972 as a logic programming language that solves problems by logic.
Prolog is a general-purpose logic programming language associated with artificial intelligence and computational linguistics. Prolog has its roots in first-order logic, a formal logic, and unlike many other programming languages, Prolog is declarative: the program logic is expressed in terms of relations, represented as facts and rules. A computation is initiated by running a query over these relations. The language was first conceived by a group around Alain Colmerauer in Marseille, France, in the early 1970s and the first Prolog system was developed in 1972 by Colmerauer with Philippe Roussel. Prolog was one of the first logic programming languages, and remains the most popular among such languages today, with several free and commercial implementations available. The language has been used for theorem proving, expert systems, type inference systems, and automated planning, as well as its original intended field of use, natural language processing. Modern Prolog environments support creating graphical user interfaces, as well as administrative and networked applications. Prolog is well-suited for specific tasks that benefit from rule-based logical queries such as searching databases, voice control systems, and filling templates.
Find me on:
AFCIT
http://www.afcit.xyz
YouTube
https://www.youtube.com/channel/UCuewOYbBXH5gwhfOrQOZOdw
Google Plus
https://plus.google.com/u/0/+AhmedGadIT
SlideShare
https://www.slideshare.net/AhmedGadFCIT
LinkedIn
https://www.linkedin.com/in/ahmedfgad/
ResearchGate
https://www.researchgate.net/profile/Ahmed_Gad13
Academia
https://www.academia.edu/
Google Scholar
https://scholar.google.com.eg/citations?user=r07tjocAAAAJ&hl=en
Mendelay
https://www.mendeley.com/profiles/ahmed-gad12/
ORCID
https://orcid.org/0000-0003-1978-8574
StackOverFlow
http://stackoverflow.com/users/5426539/ahmed-gad
Twitter
https://twitter.com/ahmedfgad
Facebook
https://www.facebook.com/ahmed.f.gadd
Pinterest
https://www.pinterest.com/ahmedfgad/
Understand and interpret concept the loop statements and give some examples. • Students can design programs involving loop statements. • Gain knowledge and understanding of function of the loops inside the program. • Students can compare between loop statements , Iteration. , Loop structure, While - Do while, For - Loop control statement (start, end and step).
, Control all loops by break & continue statements, Infinite loop,Explain the different loops available in language with examples, Differ between loop control statement and the infinite loop , by Eng.&Educator Osama Ghandour
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training...Edureka!
This Edureka "Python Loops" tutorial (Python Tutorial Blog: https://goo.gl/wd28Zr) will help you in understanding different types of loops used in Python. You will be learning how to implement all the loops in python practically. Below are the topics covered in this tutorial:
1) Why to use loops?
2) What are loops?
3) Types of loops in Python: While, For, Nested
4) Demo on each Python loop
Python Programming Course Lecture by IoT Code Lab Training.
Discussed Topic:
Chapter 0: Python Overview
0. Python Introduction
1. What is Python?
2. Story of Python
3. Why Python
4. Use of Python
5. Python Download + Installation
6. How to Use? + Online Course Resource
1. Variable, Data Type, Expression
1. Create First Python Program File
2. First Program - Hello World
3. Comment
4. Variable + Data Type + Example
5. Variable Naming Convention
6. Practice 0.1
2. Input/ Output
1. Input/ Output (String)
1. A String Input & Output
2. Display A Message in Print & Input function
3. Check Data Type
4. Practice 0.2
2. Input/ Output (Number)
1. An Integer Number Input & Output + Check Data Type
2. Type Conversion
3. A Float Number Input & Output + Check Data Type
4. Built-in Function with Example
5. Practice 0.3
3. Formatted Input Output
https://telecombcn-dl.github.io/2017-dlai/
Deep learning technologies are at the core of the current revolution in artificial intelligence for multimedia data analysis. The convergence of large-scale annotated datasets and affordable GPU hardware has allowed the training of neural networks for data analysis tasks which were previously addressed with hand-crafted features. Architectures such as convolutional neural networks, recurrent neural networks or Q-nets for reinforcement learning have shaped a brand new scenario in signal processing. This course will cover the basic principles of deep learning from both an algorithmic and computational perspectives.
Text Classification Powered by Apache Mahout and Lucenelucenerevolution
Presented by Isabel Drost-Fromm, Software Developer, Apache Software Foundation/Nokia Gate 5 GmbH at Lucene/Solr Revolution 2013 Dublin
Text classification automates the task of filing documents into pre-defined categories based on a set of example documents. The first step in automating classification is to transform the documents to feature vectors. Though this step is highly domain specific Apache Mahout provides you with a lot of easy to use tooling to help you get started, most of which relies heavily on Apache Lucene for analysis, tokenisation and filtering. This session shows how to use facetting to quickly get an understanding of the fields in your document. It will walk you through the steps necessary to convert your text documents into feature vectors that Mahout classifiers can use including a few anecdotes on drafting domain specific features.
Configure
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAMaulik Borsaniya
Introduction to Python:
The basic elements of Python, Objects, expressions and numerical Types, Variables and assignments, IDLE, Branching programs, Strings and Input, Iteration
Structured Types, Mutability and Higher-order Functions:
Tuples, Lists and Mutability, Functions as Objects, Strings, Tuples and Lists, Dictionaries
Boost your career with Python Programming Language at SSDN Technologies in Gurgaon. In this training you learn about Python basic to advance concept by industry expert. Register Now !!
Recurrent Neural Networks hold great promise as general sequence learning algorithms. As such, they are a very promising tool for text analysis. However, outside of very specific use cases such as handwriting recognition and recently, machine translation, they have not seen wide spread use. Why has this been the case?
In this presentation, we will first introduce RNNs as a concept. Then we will sketch how to implement them and cover the tricks necessary to make them work well. With the basics covered, we will investigate using RNNs as general text classification and regression models, examining where they succeed and where they fail compared to more traditional text analysis models. A straightforward open-source Python and Theano library for training RNNs with a scikit-learn style interface will be introduced and we’ll see how to use it through a tutorial on a real world text dataset
Cis 1403 lab1- the process of programmingHamad Odhabi
This lab aims to develop students knowledge and skills needed to create a simple programming code. It covers the process of developing computer programs starting from a simple analysis of the problem, identifying outputs, inputs, and design process/algorithm, convert algorithm to code, testing, and documentation. The student will be introduced to the Java program structure, numerical variable and high-level introduction to data types. The lab does not go into depth explaining the data types and memory storage. These will be discussed in the upcoming labs. Also, the student will be introduced to the REPL cloud environment that will be used to create a simple application.
Introduction to Prolog (PROramming in LOGic)Ahmed Gad
As part of artificial intelligence course given in faculty of computers and information, Prolog was the first tool to make intelligent decisions like making relations between different objects.
Prolog has a strong history in AI starting in 1972 as a logic programming language that solves problems by logic.
Prolog is a general-purpose logic programming language associated with artificial intelligence and computational linguistics. Prolog has its roots in first-order logic, a formal logic, and unlike many other programming languages, Prolog is declarative: the program logic is expressed in terms of relations, represented as facts and rules. A computation is initiated by running a query over these relations. The language was first conceived by a group around Alain Colmerauer in Marseille, France, in the early 1970s and the first Prolog system was developed in 1972 by Colmerauer with Philippe Roussel. Prolog was one of the first logic programming languages, and remains the most popular among such languages today, with several free and commercial implementations available. The language has been used for theorem proving, expert systems, type inference systems, and automated planning, as well as its original intended field of use, natural language processing. Modern Prolog environments support creating graphical user interfaces, as well as administrative and networked applications. Prolog is well-suited for specific tasks that benefit from rule-based logical queries such as searching databases, voice control systems, and filling templates.
Find me on:
AFCIT
http://www.afcit.xyz
YouTube
https://www.youtube.com/channel/UCuewOYbBXH5gwhfOrQOZOdw
Google Plus
https://plus.google.com/u/0/+AhmedGadIT
SlideShare
https://www.slideshare.net/AhmedGadFCIT
LinkedIn
https://www.linkedin.com/in/ahmedfgad/
ResearchGate
https://www.researchgate.net/profile/Ahmed_Gad13
Academia
https://www.academia.edu/
Google Scholar
https://scholar.google.com.eg/citations?user=r07tjocAAAAJ&hl=en
Mendelay
https://www.mendeley.com/profiles/ahmed-gad12/
ORCID
https://orcid.org/0000-0003-1978-8574
StackOverFlow
http://stackoverflow.com/users/5426539/ahmed-gad
Twitter
https://twitter.com/ahmedfgad
Facebook
https://www.facebook.com/ahmed.f.gadd
Pinterest
https://www.pinterest.com/ahmedfgad/
Full-day introductory training to the Python programming language and basics of programming for people who are interested in the subject but have never done anything related to it before and would like to explore it from a beginner's standpoint. This training was held at the TrustYou HQ office in Munich, Germany, once per quarter between 2017 and 2019.
LESSON 3B. FOCUS: FOR LOOPS, NESTED LOOPS, TASKS AND CHALLENGES.
Introduction to, with examples, For loops. Challenges and tasks included with solutions (predict the output). Compare ‘while’ and ‘for’ loops. Use the break statement and explore how it works in different scenarios. Learn about Nested Loops. Learn about the need for initialisation (set starting value). Create your own for loops. Create the beginnings of an arithmetic quiz using a random function and for loops. Big ideas discussion: Is the universe digital. A program? Introducing Gottfried Leibniz and Konrad Zuse. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section.
Slides for Lecture 1 of the course: Introduction to Programming with Python offered at ICCBS.
It covers the following topics:
1.) Variables, Statements and Expressions
2.) Functions
3.) Flow Control
01 Introduction to analysis of Algorithms.pptxssuser586772
An algorithm is a set of steps of operations to solve a problem performing calculation, data processing, and automated reasoning tasks.
An algorithm is an efficient method that can be expressed within finite amount of Time and space.
The important aspects of algorithm design include creating an efficient algorithm to solve a problem in an efficient way using minimum time and space.
To solve a problem, different approaches can be followed. Some of them can be efficient with respect to time consumption, whereas other approaches may be memory efficient. To Evaluate An Algorithm we have to Satisfy the following Criteria:
INPUT: The Algorithm should be given zero or more input.
OUTPUT: At least one quantity is produced. For each input the algorithm produced value from specific task.
DEFINITENESS: Each instruction is clear and unambiguous.
FINITENESS: If we trace out the instructions of an algorithm, then for all cases, the algorithm terminates after a finite number of steps.
EFFECTIVENESS: Every instruction must very basic so that it can be carried out, in principle, by a person using only pencil & paper.Algorithm : Systematic logical approach which is a well-defined, step-by-step procedure that allows a computer to solve a problem.
Pseudocode : It is a simpler version of a programming code in plain English which uses short phrases to write code for a program before it is implemented in a specific programming language.
Program : It is exact code written for problem following all the rules of the programming language.Algorithm can be described (Represent) in four ways.
Natural language like English:
When this way is chooses, care should be taken, we
should ensure that each & every statement is definite.
(no ambiguity)
2. Graphic representation called flowchart:
This method will work well when the algorithm is small& simple.
3. Pseudo-code Method:
In this method, we should typically describe algorithms as
program, which resembles language like Pascal & Algol
(Algorithmic Language).
4.Programming Language:
we have to use programming language to write algorithms like
C, C++,JAVA etc.Comments begin with // and continue until the end of line.
Blocks are indicated with matching braces { and }.
An identifier begins with a letter. The data types of variables are not explicitly declared.
node= record
{
data type 1 data 1;
data type n data n;
node *link;
}
4. There are two Boolean values TRUE and FALSE.
Logical Operators
AND, OR, NOT
Relational Operators
<, <=,>,>=, =, !=
1.How to create an algorithm: To create an algorithm we have following design technique
a) Divide & Conquer
b) Greedy method
c) Dynamic Programming
d) Branch & Bound
e) Backtracking
2.How to validate an algorithm:
Once an algorithm is created it is necessary to show that it computes the correct Pr
This is the slide presenting about how to use Python programming language to create an desktop application at a very basic level.
Target: Non-IT background people who interested in programming.
Similar to Python week 5 2019 2020 for g10 by eng.osama ghandour (20)
How to use common app
Prepare for gaining international grants or scholarships out side Egypt after finishing grade 12 by knowing well how to build your common app application and how to search for a good colleges and how to apply to colleges from my following video
https://youtu.be/NCp7J_eBZ4A
XAMPP
Client, Server, Apache server, MySQL server, Run at server and Run at client.
Skills: 1- Install "xampp" package. 2- Create Apache server and MySQL server.
Essential Questions: 1- How can you simulate the client computer as a server? 2- How can you install the "xampp" packetge in your computer and mention a function of each Apache server and MqSQL server?
https://www.youtube.com/watch?v=X3QfheIHt_8
What is a computer ? Define it
How does a computer work?
What are the applications which use computer systems ? Mention 3 applications
What are the numbering systems?
Decimal system base 10
Binary system base 2
Octal system base 8
Hexadecimal system base 16
How to convert from Decimal system to Binary system or Octal system Hexadecimal system ?
How to convert from Binary system or Octal system Hexadecimal system Decimal system to ?
FormatFactory Screen Numbering Systems - Blended Learning 2020-2021
https://youtu.be/maGKCymFV0Q
converting between numbering systems ,
Decimal system ,
Binary system ,
Ocatal system ,
Hexadecimal system ,
https://youtu.be/5IwoCCcUhK8
Converting between numbering systems using calculator
https://youtu.be/OyifPFfMrEg
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
Normal Labour/ Stages of Labour/ Mechanism of Labour
Python week 5 2019 2020 for g10 by eng.osama ghandour
1. Agenda of LO CS.1.09 W5
1- Warm up Revision 10 min
2- ppt teacher demonstrate about Python 15m
3- Video about Python 5min
4- Practical work Students divided in pairs and use
Anaconda : Spyder or on line Python platform to
create very simple program using python
-3.8.1 7
- Questions and answers as pretest about Python 5 m
8-Refelection 5 min
9- Home work 5 min
Python
Eng. & Educator Osama
Ghandour
2. LO CS.1.09 W5 :
Students can design
programs involving the
logical operators and
conditional statements.
Lesson plan
Python
Eng. & Educator Osama
Ghandour
3. Warm Up
Listen to this video
Offline
On line
Python
Eng. & Educator Osama
Ghandour
4. Warm up 5 min
1-Arithmetic Expressions .
2-Running and debagging programs.
3- if Statement , if else , nested if .
4- loops = “repetitions ” = donkey
work =machine work , nested loops
Eng. & Educator Osama
Ghandour
Python
5. Anaconda : Spyder or an on line Python platform
Inputs : 1- though console 2- input message 3- sensors 2- Dataset
Python – Cheat sheets
You can install python-2.7.17 or python-3.8.1
Write Program / Code
Eng. & Educator Osama
Ghandour
Python
11. Donkey work =
repetition = iteration –
loops – inside it there
are conditions
Eng. & Educator Osama
Ghandour
12. Further programming
• Lab exercises
– Let's go downstairs to the basement computer
labs!
• - learn prcticaly
• What next?
– Lists , Dictionaries , Algorithms etc.
Eng. & Educator Osama
Ghandour
13. Essential Questions
• Essential Questions: learn
practically by designing a program
which include 1- the logical
operators and give some
examples. 2- Comparing between
if & switch statements and give
some examples. 3- Write the
general syntax of the conditional
statements (if & switch). Eng. & Educator Osama
Ghandour
14. Evidence of Learning:
Create a project with a
programming language
“Python” using Variables,
Constants Arithmetic, and
Assignment operators.
Eng. & Educator Osama
Ghandour
15. 15
if
If statement: Executes a group of
statements only if a certain condition is
true. Otherwise, the statements are
skipped.
Syntax:
if condition:
statements
Example:
gpa = 3.4
if gpa > 2.0:
print "Your application is accepted."
Eng. & Educator Osama
Ghandour
16. 16
if/else
if/else statement: Executes one block of statements if a certain
condition is True, and a second block of statements if it is False.
Syntax:
if condition:
statements
else:
statements
Example:
gpa = 1.4
if gpa > 2.0:
print "Welcome to Mars University!"
else:
print "Your application is denied."
Multiple conditions can be chained with elif ("else if"):
if condition:
statements
elif condition:
statements
else:
statements Eng. & Educator Osama
Ghandour
17. 17
while
while loop: Executes a group of statements as long as a condition
is True.
good for indefinite loops (repeat an unknown number of times)
Syntax:
while condition:
statements
Example:
number = 1
while number < 200:
print number,
number = number * 2
Output:
1 2 4 8 16 32 64 128
Eng. & Educator Osama
Ghandour
18. 18
Logic
Many logical expressions use relational operators:
Logical expressions can be combined with logical operators:
Exercise: Write code to display and count the factors of a number.
Operator Example Result
and 9 != 6 and 2 < 3 True
or 2 == 3 or -1 < 5 True
not not 7 > 0 False
Operator Meaning Example Result
== equals 1 + 1 == 2 True
!= does not equal 3.2 != 2.5 True
< less than 10 < 5 False
> greater than 10 > 5 True
<= less than or equal to 126 <= 100 False
>= greater than or equal to 5.0 >= 5.0 True
home work
Eng. & Educator Osama Ghandour
19. Exercise :
19
• Write a program to prompt for a score between 0.0
and 1.0.
If the score is out of range, print an error message.
If the score is between 0.0 and 1.0,
print a grade using the following table:
• Score Grade • >= 0.9 A
• >= 0.8 B
• >= 0.7 C
• >= 0.6 D
• < 0.6 F
• ~~~ • Enter score: 0.95 A ~~
• Enter score: perfect • Bad score
• Enter score: 10.0 • Bad score
• Enter score: 0.75 • C • Enter score: 0.5 • F
20. Dictionaries
Dictionaries
• Dictionaries: curly brackets { }
• What is dictionary?
• Refer value through key; “associative arrays”
• Like an array indexed by a string
• An unordered set of key: value pairs
• Values of any type; keys of almost any type
• {"name":"Guido", "age":43, ("hello","world"):1,
42:"yes", "flag": ["red","white","blue"]}
• d = { "foo" : 1, "bar" : 2 } print d["bar"] # 2
some_dict = {} some_dict["foo"] = "yow!" print
some_dict.keys() # ["foo"]
20
Eng. & Educator Osama
Ghandour
23. functions
Functions in Python
Defining functions.
Return values.
Local variables.
Built-in functions.
Functions of functions.
Passing lists, dictionaries, and
keywords to functions.
23
Eng. & Educator Osama
Ghandour
24. functions
24
Why functions?
• It may not be clear why it is worth the trouble to divide a
program into functions. • There are several reasons: •
Creating a new function gives you an opportunity to name a
group of statements, which makes your program easier to
read, understand, and debug. • Functions can make a
program smaller by eliminating repetitive code. Later, if you
make a change, you only have to make it in one place. •
Dividing a long program into functions allows you to debug
the parts one at a time and then assemble them into a
working whole. Well-designed functions are often useful for
many programs. Once you write and debug one, you can
reuse it
Eng. & Educator Osama
Ghandour
25. functions
Define a Function: def
Define them in the file above the point
they're used Body of the function
should be indented consistently (4
spaces is typical in Python) Example:
square.py def square(n): return n*n
print "The square of 3 is ", print
square(3)
Output: The square of 3 is 9
25
Eng. & Educator Osama
Ghandour
26. functions
The def statement
The def statement is executed (that's
why functions have to be defined
before they're used) def creates an
object and assigns a name to
reference it; the function could be
assigned another name, function
names can be stored in a list, etc.
Can put a def statement inside an if
statement, etc!
26
Eng. & Educator Osama
Ghandour
28. functions
Functions, Procedures
def name(arg1, arg2, ...):
"""documentation"""#
optional doc string
statements
return # from procedure
return expression # from
function
28
Eng. & Educator Osama
Ghandour
29. functions
More about functions
• Arguments are optional. Multiple
arguments are separated by commas “ , ”.
• If there's no return statement, then
“None” is returned. Return values can be
simple types or tuples. Return values may
be ignored by the caller. • Functions are
“typeless.” Can call with arguments of any
type, so long as the operations in the
function can be applied to the arguments.
This is considered a good thing in Python
29
Eng. & Educator Osama
Ghandour
30. Connection to math
Eng. & Educator Osama
Ghandour
Create, interpret and analyze quadratic functions that model
real-world situations. W1-4
Key Concepts:
o 1. Quadratic Function
o 2. First and second differences
o 3. Completing the square
o 4. Complex numbers
o 5. Parabola
o 6. Focus
o 7. Argand diagram
o 8. related roots
31. Mechanics
Eng. & Educator Osama
Ghandour
Learning Outcome: Use position, displacement, average and
instantaneous velocity, average and instantaneous acceleration
to describe 1-dimensional motion of an object. W1-3
Key Concepts:
o 1. Position /Time graphs
o 2. velocity/Time graphs
o 3. Acceleration /Time graphs
o 4. Relative velocity.
o 5. Instantaneous velocity
o 6. Average velocity
o 7. Reference Frames
32. Mechanics
Eng. & Educator Osama
Ghandour
Week 04 - Week 08
Learning Outcome: Use kinematic equations
to understand and predict 1-dimensional motion
of objects under constant acceleration,including
vertical (free-fall) motion under gravity.
Key Concepts:
1. Area under a curve
2. Kinematic equations for 1-D motion with
constant acceleration
3. Free-fall motion
33. Physics
• . Fluids w1-3
• 2. Pressure
• 3. Manometer
• 4. Pressure gauge
• 5. Units of pressure
• 6. Effect of atmospheric pressure on boiling point of
water
• 7. Change in atmospheric pressure with altitude
• 8. Pressure difference and force
• 9. Archimedes Principle
Eng. & Educator Osama
Ghandour
34. Check your email to Solve the
Online auto answered
quiz 15 min after
school the quiz will be
closed in 10:00pm
after
tomorrow
Eng. & Educator Osama
Ghandour
Python
57. Evidence of Learning &home work
• Start a task by
1- Create a project using logical
operators and conditional
statements. 2- Create a function
with parameters and call it.
• Complete the task as home work
Eng. & Educator Osama
Ghandour
58. Summary
1-Using logical operators and give
some examples.
2- using & Comparing between if
&switch statements and give some
examples.
3- Write the general syntax of the
conditional statements (if& switch).
Eng. & Educator Osama
Ghandour
Python
59. Prepare for next week
According to student’s law
Gn=Wn % Ng
CS.1.07 - 1- Gain knowledge
and understanding the
meaning of computer
language? 2- Draw conclusions
about concepts
Eng. & Educator Osama
Ghandour
Python
60. Reflection
• Mention 2 things you learned today
• What is your goal to accomplish in
next week end in programming using
Python?
Eng. and Educator Osama
Ghandour
Python
61. Home work (s. proj.) 1
you studied in physics about
electric power and in your capstone about
saving wasted energy so design a flowchart
for Arduino control circuit to save the
consumed energy in electric power circuit .
Note : an ideal electric system has power
factor PF=0.999 and very low reactive
power. using logical operators and
conditional statements beside a function
with parameters , calling it to complete a
program .
Eng. and Educator Osama
Ghandour
Python
62. Rubaric
Blue
student differentiate between / use logical operators
and conditional statements with examples.
Green
student differentiate between / use logical operators
and conditional statements .
Yello
w
student mention features / use one of logical operators
or conditional statements .
Read
student don`t have any idea about logical operators and
conditional statements .
Eng. and Educator Osama
Ghandour
Python
65. Resources
• https://www.youtube.com/user/osmgg2
Other materials:
• https://www.sololearn.com
• https://www.w3schools.com
• www.python.org
• “Learning Python,” 2nd edition, Mark Lutz
and David Ascher (O'Reilly, Sebastopol, CA,
2004) (Thorough. Hard to get into as a quick
read)
Eng. & Educator Osama
Ghandour
Python
66. Learn and practice through on line web sites
https://www.thewebevolved.com
https://www.123test.com/
https://www.wscubetech.com/
https://www.w3schools.com/
https://www.guru99.com
https://codescracker.com/exam/review.php
https://www.arealme.com/left-right-brain/en/
https://www.proprofs.com/
https://www.geeksforgeeks.org/
https://www.tutorialspoint.com
https://www.sololearn.com
http://www.littlewebhut.com/
Eng. & Educator Osama
Ghandour
Python
67. If you do not feel happy, smile
and pretend to be happy.
• Smiling produces seratonin
which is a neurotransmitter
linked with feelings of
happiness