Computer Science G10 T \2017 T shaikhah AlZeyoudi

Slides:



Advertisements
Similar presentations
Computer Science 101 Lists in Python. The need for lists Often we need many different variables that play a similar role in the program Often we need.
Advertisements

Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.
Top-Down Design CSC 161: The Art of Programming Prof. Henry Kautz 9/16/2009.
Week 5 - Friday.  What did we talk about last time?  Repetition  while loops.
CSE 1301 Lecture 6B More Repetition Figures from Lewis, “C# Software Solutions”, Addison Wesley Briana B. Morrison.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
True BASIC Ch. 6 Practice Questions. What is the output? PRINT X LET X = -1 PRINT X FOR X = 4 TO 5 STEP 2 PRINT X NEXT X PRINT X END.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
1 10/20/08CS150 Introduction to Computer Science 1 do/while and Nested Loops Section 5.5 & 5.11.
Main task -write me a program
Graphic Design YOUR NAME Elements & Principles of.
6 th Grade Science Week 6 CCA (Reg) Question 1 Answers 1 Question 2 Question 3 Question 4 Question 5 Question 6 Answers 2 Answers 3 Answers 4 Answers.
Eliza the Chatterbox Year 9 Computing HLA
Control Structures FOR Statement Looping.
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.
Computer Science 101 Lists in Python. The need for lists Often we need many different variables that play a similar role in the program Often we need.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
Python Programming Using Variables and input. Objectives We’re learning to use basic knowledge of variables combined with user input. Outcomes Continue.
Lesson 1 Operating Systems, Part 1. Objectives Describe and list different operating systems Understand file extensions Manage files and folders.
My Python Programmes NAME:.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
GCSE Computing: Programming GCSE Programming Remembering Python.
Red Square b d a c Warm Up Task 1. Bigger than 5 Odd b d a c 1, 7, 9, 3, 5, 2, 4, 8, 6 Warm Up Task 2.
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
Keywords: Range Trace table Testing List Index Activities: To create a trace table for a small piece of code using a set of data. Create a trace table.
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
How Computers Work. Objectives What Explain what a computer is. Identify different input and output devices. Why To understand how computers work. How.
What we learned so far Ask a question, and get a user input (in characters) If..else While for.
YEAR 12 COMPUTER SCIENCE.
Introduction to Programming
Lesson 4 - Challenges.
Programming 101 Programming for non-programmers.
Lesson 3 - Repetition.
Introduction to Programmng in Python
Lecture 07 More Repetition Richard Gesick.
Do it now activity Green pen activity in books.
Starter Write a program that asks the user if it is raining today.
Iterations Programming Condition Controlled Loops (WHILE Loop)
Lecture 4B More Repetition Richard Gesick
Learning to Program in Python
Python I/O.
exa.im/stempy16.files - Session 12 Python Camp
Unit I Flash Cards Start.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
File Handling.
G7 programing language Teacher / Shamsa Hassan Alhassouni.
DO NOW – Decompose a Problem
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Python 21 Mr. Husch.
Introduction to Programming
Using the Target Variable Inside the Loop
March 13-17, th Grade Schedule
PYTHON: BUILDING BLOCKS Sequencing & Selection
Explain what touch develop is to your students:
Programming In Lesson 4.
Year 2 Autumn Term Week 2 Lesson 5
Introduction to Python
Introduction to Programming
Year 2 Autumn Term Week 2 Lesson 5
WJEC GCSE Computer Science
Starter Look at the hand-out.
Python – May 20 Reading data from the Web
Iteration – While Loops
GCSE Computing.
Week 5 - Friday CS 121.
Presentation transcript:

Computer Science G10 T3- 2018\2017 T shaikhah AlZeyoudi Dibba Al Fujairah

Week2 Unit5 – Lesson2 P. #19-26 Term3 -- Python Unit 5 - Data structures Week2 Unit5 – Lesson2 P. #19-26 15 Apr 2018

Explain the use of loops with lists. loop, list Explain the use of loops with lists. Demonstrate and let the students experiment with using for and while loops in conjunction with lists. Show and explain how to create lists dynamically.

Review last lesson Lists

Explain the use of loops with lists

for i in range (0,3,1): print(i)

Reading and writing data in lists

Counter x Square 1 2 4 3 9 16 5 25 6 36 7 49 8 64

set values Using a loop to

user inputs Using a loop to

Using a loop to printing

Creating Empty List

You may not have the data or know the size of your list before your program starts. You can create an empty list first, and then add elements and values later NAME = []

append( ) function

NAME.append(“stud1”) NAME.append(“stud2”)

append( ) function to add value List

student_Grades=[] finish="no" while finish=="no": grade=input("Enter the Grade :") grade=int(grade) student_Grades.append(grade) finish=input("Are you Finished ? ") print(student_Grades)

Activity

Activity 2: Using loops to set and read values in a list

Open: 10-Term3 2-Select you class folder 10A-….. 10G-…..

1 2 4 3

Week2-NAME Now Open new python name as: Applied the Task sheet If you finish: Save your answer Run the output Ask the teacher to correct Week2-NAME