OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
Python Arrays Agenda
1. Agenda of LO CS.1.12 W10
1- Warm up Revision 10 min
2- ppt teacher demonstrate Py. CS.1.12 15m
3- Video about Python 5min
4- Practical work Students on lineand 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.12 W8-9 : 1- Identify
inconsistencies, the ability to declare
an Array (one or multidimensional)
dimension. 2- Students can access
the elements of an Array (Adding and
Removing) elements. 3- Students can
deal with Array methods {index(),
append(), remove(), clear(), sort(),
count(), insert() and reverse()}.
Lesson plan
Python
Eng. & Educator Osama
Ghandour
3. Warm up 5 min
Ability to declare an Array .
2- How to access the elements of an
Array (Adding and Removing)elements.
3- Students can deal with Array
methods {index(), append(), remove(),
clear(), sort(), count(), insert() and
reverse()}. in Python
Eng. & Educator Osama
Ghandour
Python
4. Difference Between List, Tuple,
Set and Dictionary in Python.
Listen to this video
Offline On line
Eng. & Educator Osama
Ghandour
Python
Warm Up 12 min
5. • Essential Questions: of week 9
1- What is an Array?
2- How to define the Array
(rows: 10 elements and
columns: 5 elements?
3- How to access the
Elements of an Array?
Eng. & Educator Osama
Ghandour
6. Essential Questions: w9
4- How to delete contents of
all Elements of the Array?
5- What are the Array Method
that used for (sorting,
removing, and counting) the
elements of the array?
Eng. & Educator Osama
Ghandour
7. Essential Questions: W10
6- What is a Multidimensional
Array?
7- How and where we can use
Multidimensional Array?
Eng. & Educator Osama
Ghandour
8. What we will learn
1- Multidimensional Array. 2- Load
thousands of Data. 3- Introduction to
Multidimensional Arrays. 4- Dealing
with Multidimensional Arrays.
Eng. & Educator Osama
Ghandour
9. access the elements of a Multidimentional array (Adding
and Removing) elements. 2- Students can deal with Array
methods {index(), append(), insert() and reverse()}.
Listen to this video
Offline On line
Eng. & Educator Osama
Ghandour
Python
Activity 2 20 min
10. Use the following methods or functions
through numpy Library search for sample code
and use it in sample Multidimensional array
programs using Anaconda : Spyder or through
on line Python platform such as 3wschools /
gekesforgeks through your laptops
•Array methods {index(),
append(), remove(), clear(),
sort(), count(), insert() and
reverse()}.
Eng. & Educator Osama
Ghandour
Activity 3 15 min
11. 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
15. Example of removing elements
in an array : Removing
duplicates
Listen to this video
Offline On line
Eng. & Educator Osama
Ghandour
Python
Activity 4 10 min
16. How To Create a Game Board
with 2D Lists in Python 3
Listen to this video
Offline On line
Eng. & Educator Osama
Ghandour
Python
Activity 4 5 min
17. Evidence of Learning:
apply projects to demonstrate
understanding of Multidimentional
arrays in Python programming
language basic concepts (arrays)
related to capston project , Create
a project using logical operators
and conditional statements. 2-
Create a function with parameters
and call it. Eng. & Educator Osama
Ghandour
18. 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
19. 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
20. 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
21. 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
22. Run Arduino UNO with PyFirmata
library
Eng. & Educator Osama
Ghandour
35. Summary
1- Revision on arrays in python.
2- Access the elements of a Multidimentional array (Adding and
Removing) elements. 2- Students can deal with Array methods {index(),
append(), insert() and reverse()}.
3- Indexing Multi Dimensional Arrays.
removing elements in an array .
4-How To Create a Game Board with 2D Lists in Python 3.
5- integrating arrays with the other disciplines .
6- integrating arrays to the Capstone project.
Eng. & Educator Osama
Ghandour
Python
36. 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
37. Reflection
• Mention 2 things you learned today
• What is your goal to accomplish in
next week end in programming using
Arrays in Python?
Eng. and Educator Osama
Ghandour
Python
38. 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 Mutidimentional arrays and
previous concepts as loops , if statements ,
logical operators and conditional
statements beside a function with
parameters , calling it to complete a
Eng. and Educator Osama Ghandour
Python
39. Rubaric
Blue
student differentiate between / different types of arrays
with examples.
Green student differentiate between different types of arrays .
Yello
w
student mention features / use one of type of arrays .
Read student don`t have any idea arrays .
Eng. and Educator Osama
Ghandour
Python
40. Resources
Python Array 2
https://youtu.be/MsoNUTzl0EQ
Part 9 1 Python multidimensional array in python
https://www.youtube.com/watch?v=fH-LxX7qMuY&t=35s
removing elements in an array : Removing duplicates
https://www.youtube.com/watch?v=Fr_WycC4-UY
How To Create a Game Board with 2D Lists in Python
https://www.youtube.com/watch?v=JnujQxAqAIM
https://www.w3schools.com/python/python_arrays.asp
Other materials:
https://www.sololearn.com
www.python.org
https://www.geeksforgeeks.org/multi-dimensional-lists-in-python/
Eng. and Educator Osama
Ghandour
Python
41. If you do not feel happy, smile
and pretend to be happy.
• Smiling produces seratonin
which is a neurotransmitter
linked with feelings of
happiness