[PDF] PYTHON CONTENT MANUAL Schools may start AI “Inspire





Previous PDF Next PDF



Chapter-3: The Schoolboy (Detailed Explanation & Summary

Chapter: The Schoolboy (Poem). Subject: English Literature. Class: VIII. Chapter-3: The Schoolboy. (Detailed Explanation & Summary). Stanza-wise Explanation.



Run! Nasruddins Aim

Aim. 45. 2022-23. Page 10. But it certainly didn't hit the target! They asked Nasruddin. “And this must be how you shoot an arrow!” “Of course not



Guidelines for teachers to assess Speaking and Listening Skills in

Since CBSE has the onerous responsibility of assessing scholastic and co-scholastic achievement levels of students in over 12000 schools affiliated to it it 



The Open Window

"My aunt will be down presently Mr. Nuttel



PYTHON CONTENT MANUAL

Schools may start AI “Inspire module” of 12 hours at Class VIII itself. offering various Skill subjects at Secondary and Senior Secondary level to.



PYTHON CONTENT MANUAL

Schools may start AI “Inspire module” of 12 hours at Class VIII itself. offering various Skill subjects at Secondary and Senior Secondary level to.



Untitled

and the explanation. NCERT book. VISTAS https://www.success cds.net/cce- cbse/class- xii/english/the-third- level.html https://www.youtube .com/watch?v=IFky.



ENGLISH-COMMUNICATIVE (Code No. 101) (2017 – 2018)

12 marks. The Grammar syllabus will include the following areas in class IX : 1. Tenses. 2. Modals. 3. Use of passive voice. 4. Subject – verb concord.



PART - A (40 Marks)

(iii) they find class too boring. (iv) they can get away with it. (b) What is the advantage of having a technology that allows students to see how well they 



1 English Core (301) Sample Question Paper (Term 1) Class - XII

The Question Paper contains THREE sections. Section B-WRITING SKILLS has 12 questions. ... C. Enjoyed the sprawling suite on the fifth floor.



CLASS XII ENGLISH THE THIRD LEVEL Brief Introduction Summary

CLASS XII ENGLISH THE THIRD LEVEL Brief Introduction The Third Level by Jack Finney is about the harsh realities of war War has irreversible consequences thus leaving people in a state of insecurity It is also about modern day problems and how common man tends to escape reality by various means

What is a 3rd level class 12 summary?

This is ideally The Third Level Class 12 summary. The summary of Third Level starts with the narrator himself talking about the third level at the Grand Central Station which has only two levels in real life, which the President of New York Central and the New York, New Haven, and Hartford Railroads would vouch for.

Who wrote the third level?

The Third Level is written by Jack Finney. Learncram.com has provided the third level extra questions and answers pdf, the third level theme, the third level summary 12th class, class 12 English the third level summary in Hindi, CBSE class 12 English the third level summary, the third level summary learncram, the third level full story in Hindi.

What is Class 12 the third level by Jack Finney about?

Also, Take Free Online MCQs Test for Class 12 The Third Level by Jack Finney is about the harsh realities of war. War has irreversible consequences thus leaving people in a state of insecurity. It is also about modern-day problems and how the common man tends to escape reality by various means.

What is CBSE Class 12 English explanation & notes?

The CBSE Class 12 English explanation or notes are designed to enable the student to easily grasp the concepts of Class 12 English syllabus and help them prepare for the board and other competitive examinations in the respective subject.

  • Past day

  • The Third Level Summary

    The Third Level is the first chapter of the CBSE Class 12 English Supplementary textbook – Vistas. It is one of the most puzzling chapters of all the CBSE Class English literature chapters because it has a theme of science fiction that correlates to psychology, and it is open-ended. lgo algo-sr relsrch lst richAlgo" data-616="645fb25c2c7db">byjus.com › cbse-notes › class-12-english-the-thirdThe Third Level Summary - CBSE Class 12 English Vistas - BYJU'S byjus.com › cbse-notes › class-12-english-the-third Cached

PYTHON CONTENT MANUAL

2

ARTIFICIAL INTELLIGENCE CURRICULUM

Curated with support from Intel®

3

Acknowledgements

Patrons:

Sh. Ramesh Pokhriyal 'Nishank', Minister of Human Resource Development,

Government of India

Sh. Dhotre Sanjay Shamrao, Minister of State for Human Resource Development,

Government of India

Human Resource Development, Government of India Advisory, Editorial and Creative

Inputs:

Ms. Anita Karwal, IAS, Chairperson, Central Board of Secondary Education Ms. Shweta Khurana, Director, Programs, Partnerships and Policy Group, Intel India

Guidance and Support:

Sh. Anurag Tripathi, IRPS, Secretary, Central Board of Secondary Education Dr. Joseph Emmanuel, Director (Academics), Central Board of Secondary Education Dr. Biswajit Saha, Director (Skill Education & Training), Central Board of Secondary

Education

Education Value adder, Curator and Coordinator:

Sh. Ravinder Pal Singh, Joint Secretary, Department of Skill Education, Central Board of

Secondary Education

Content Curation Team:

Mr. Mukesh Kumar, HOD Computer Science, DPS - R K Puram, New Delhi Ms. Sharon E. Kumar, Innovation and Education Consultant, Intel AI4Youth Program

Mr. Bhavik Khurana, Intel AI For Youth Coach

Ms. Ambika Saxena, Intel AI For Youth Coach

Mr. Akshay Chawla, Intel AI For Youth Coach

Mr. Shivam Agrawal, Intel AI For Youth Coach

Feedback By:

Ms. Neelam Roy, ITL Public School, Delhi

Ms. Mehreen Shamim, TGT, Delhi Public School Bangalore East, Bengaluru Ms. Saswati Sarangi, PGT Computer Science, RCIS Kalyan Nagar, Bengaluru Ms. Isha, HOD Computer Science, Salwan Public School, Delhi

Ms. Aayushi Agrawal, Salwan Girls School, Delhi

Content Review Committee

Ms. Madhu Singh, DPS Ghaziabad, Ghaziabad

Ms. Ritu Ranjan, Indraprastha World School, Paschim Vihar, Delhi Ms. Divya Jyoti, SLS DAV Public School, Mausam Vihar, Delhi

Ms. Swati Ganguly, Freelancer, Delhi

Ms. Niti Dwivedi, Freelancer, Delhi

4

Special Thanks To:

Ms. Indu Khetrapal, Principal, Salwan Public School, Delhi Ms. Rekha Vinod, Principal, RCIS Kalyan Nagar, Delhi Ms. Manilla Carvalho, Principal, Delhi Public School Bangalore East, Bengaluru Ms. Sudha Acharya, Principal, ITL Public School, Delhi Ms. Puneet Sardana, Vice Principal, Salwan Girls School, Delhi 5 6

About the Book

Artificial Intelligence (AI) is being widely recognized to be the power that will fuel the future global digital economy. AI in the past few years has gained geo-strategic importance and a large number of countries are striving hard to stay ahead with their policy initiatives to get their country ready. India's own AI Strategy identifies AI as an opportunity and solution provider for inclusive economic growth and social development. The report also identifies the importance of skills- based education (as opposed to knowledge intensive education), and the value of project tively harness the potenti to make India's next generation 'AI ready'. As a beginning in this direction, CBSE has introduced Artificial Intelligence as an optional subject at Class IX from the Session 2019-2020 onwards. To enhance the multidisciplinary approach in teaching learning and also to sensitize the new generation, it was decided that

Schools may start

CBSE is already offering various Skill subjects at Secondary and Senior Secondary level to upgrade the skills and proficiency of the young generation and also to provide them awareness to explore various career options. At Secondary Level, a Skill subject may be offered as additional sixth subject along with the existing five compulsory subjects. CBSE acknowledges the initiative by Intel India in curating this Python Content Manual, the AI training video and managing the subsequent trainings of trainers on the Artificial

Intelligence Curriculum.

The aim is to strive together to make our students future ready and help them work on incorporating Artificial Intelligence to improve their learning experience. 7

Contents

Acknowledgements ............................................................................................................... 3

About the Book ..................................................................................................................... 6

Chapter 1: Algorithms and Flowcharts ................................................................................ 10

Recap .............................................................................................................................. 10

Quiz Time! ................................................................................................................... 10

Introduction ..................................................................................................................... 14

What is an Algorithm? .................................................................................................. 15

Activity ......................................................................................................................... 15

Challenge Time ............................................................................................................ 16

What is a flowchart? ..................................................................................................... 18

How to Use Flowcharts to Represent Algorithms ......................................................... 19

Challenge time! ............................................................................................................... 20

Test Your Knowledge ...................................................................................................... 20

Chapter 2: Introduction to Python ........................................................................................ 21

What is a program? ...................................................................................................... 21

What is Python? ........................................................................................................... 21

Why Python for AI? ...................................................................................................... 22

Applications of Python.................................................................................................. 22

Getting started with Python .............................................................................................. 23

Downloading and Setting up Python for use ................................................................. 23

Python IDLE installation ............................................................................................... 23

Run in the Integrated Development Environment (IDE) ................................................... 29

Interactive Mode .......................................................................................................... 29

Script Mode .................................................................................................................. 30

Python Statement and Comments ................................................................................... 32

Python Statement ........................................................................................................ 32

Python Comments ....................................................................................................... 32

Python Keywords and Identifiers .................................................................................. 33

Variables and Datatypes .............................................................................................. 35

Python Operators I .......................................................................................................... 41

Arithmetic Operators .................................................................................................... 41

Python Input and Output .................................................................................................. 41

Python Output Using print() function ............................................................................ 41

User input .................................................................................................................... 42

Type Conversion ............................................................................................................. 42

8

Implicit Type Conversion .............................................................................................. 42

Explicit Type Conversion .............................................................................................. 44

Python Operators II ......................................................................................................... 47

Comparison operators.................................................................................................. 47

Logical operators ......................................................................................................... 47

Assignment operators .................................................................................................. 48

................................................................................................................... 48

Test Your Knowledge ...................................................................................................... 49

Chapter 3 - Introduction to tools for AI ................................................................................. 50

Recap .......................................................................................................................... 50

Introduction to Anaconda ................................................................................................. 50

How to install Anaconda? ............................................................................................. 50

Jupyter Notebook ............................................................................................................ 56

Introduction .................................................................................................................. 56

What is a Notebook? .................................................................................................... 56

Installing Jupyter Notebook .......................................................................................... 57

Working with Jupyter Notebook .................................................................................... 57

Notebook Interface - Explained! ................................................................................... 58

Test Your Knowledge ...................................................................................................... 64

Chapter 4 - More About Lists and Tuples ............................................................................ 65

Introduction to Lists ......................................................................................................... 65

How to create a list ? ....................................................................................................... 65

How to access elements of a list ? ................................................................................... 65

List Index ..................................................................................................................... 66

Negative Indexing ........................................................................................................ 66

Adding Element to a List .................................................................................................. 67

Using append() method ................................................................................................ 67

Using insert() Method ................................................................................................... 68

Using extend() method ................................................................................................. 68

Removing Elements from a List ....................................................................................... 68

Using remove() method ................................................................................................ 69

Using pop() method ..................................................................................................... 69

Slicing of a List ................................................................................................................ 70

List Methods ................................................................................................................ 72

................................................................................................................... 72

Introduction to Tuples ...................................................................................................... 72

9

How to Create a tuple ? ................................................................................................... 73

Accessing of Tuples ........................................................................................................ 73

Deleting a Tuple .............................................................................................................. 73

Test Your Knowledge ...................................................................................................... 74

Chapter 5 - Flow of Control and Conditions ......................................................................... 75

If Statement ..................................................................................................................... 75

If Statement ................................................................................................................. 77

Python if...else Statement ............................................................................................ 78

Python if...elif...else Statement ..................................................................................... 79

Syntax of if...elif...else .................................................................................................. 79

Python Nested if statements ............................................................................................ 81

Practice ................................................................................................................... 81

The For Loop ................................................................................................................... 82

Syntax of for Loop ........................................................................................................ 82

Flowchart of for Loop ................................................................................................... 82

Example: Python for Loop ............................................................................................ 82

The while Statement ........................................................................................................ 83

Syntax of while Loop in Python .................................................................................... 83

Flowchart of while Loop ................................................................................................... 84

Example: Python while Loop ........................................................................................... 84

Practice ................................................................................................................... 85

Test Your Knowledge ...................................................................................................... 85

Chapter 6 : Introduction to Packages .................................................................................. 86

Recap .............................................................................................................................. 86

CHALLENGE TIME! ..................................................................................................... 86

Introduction ..................................................................................................................... 87

What is a package? ......................................................................................................... 90

Package Installation ..................................................................................................... 91

Working with a package ............................................................................................... 91

What is NumPy? .......................................................................................................... 92

Exploring NumPy! ........................................................................................................ 93

.................................................................................................................. 94

TASK 1 ........................................................................................................................ 94

TASK 2 ........................................................................................................................ 94

Test Your Knowledge ...................................................................................................... 94

Additional Resources .......................................................................................................... 95

10

Chapter 1: Algorithms and Flowcharts

Recap Till now we have gone through an experiential learning around Artificial Intelligence in which we got to know about so many new concepts like what is Artificial Intelligence, Machine Learning, Deep learning, Rule-based approach, learning based approach, neural networks, etc. Now, it is time to move ahead in this journey towards AI Readiness and work around the concepts we are introduced to through hands-on learning sessions. But before we start getting our hands dirty, let us recall what has been done so far. Here is a quiz through which you can challenge yourself and see how well do you remember things.

Quiz Time!

1. Which stage is missing in AI Project Cycle?

2. Which one of the following is not an SDG?

11

3. What will be the output for this program?

4. Large Neural Networks are time consuming and computationally expensive.

5. Which one of the following is not an AI application?

6. What is this flowchart for?

12

7. Google Deep Mind AI is based on reinforcement learning.

8. Wikipedia can be an appropriate Data Source for which domain?

9. What is the correct step to reach finish from first?

10. Pixel It is an example of machine learning AI approach.

11. AI can be implemented in which of the following field?

12. Problem statement template does not talk about goal of the project?

13. Snapchat is an example of Natural Language Processing domain?

14. Which of the following is commonly used for image processing in python?

13

15. Box plots help in finding out_______?

16. The AI domain which can be used to predict the Air Quality Index is?

17. Where is decision tree used?

18. Which process is depicted by these steps?

19. Which of the following is used to plot graphs in python?

20. How was the overall experience of the workshop?

How well did you score in the quiz? _____________________

Analyze your thoughts here:

14

Introduction

Every machine, whether AI enabled or not, follows a particular path of action. It goes through exact specific steps which have been programmed into it to accomplish the given task. For example, a washing machine can wash clothes for us and not do anything else because it is designed explicitly for this task. It follows the steps programmed into it and completes the work. Can you think of possible steps to wash clothes in a washing machine? Ever wondered how do people create such programs? Write your thoughts below.

What you Know?

What youWant to Know?

What have you Learned?

How have your Learned?

15 To develop a program, the very first step that comes into the picture is to specify the task which the machine needs to do. Once the task or the main objective of the program is finalized, the task is broken into smaller tasks which altogether contribute towards achieving the main goal. To make sure that the flow of the process is proper, algorithms and flowcharts are used which help us into developing a stepwise framework to achieve the main goal.

What is an Algorithm?

To write a logical step-by-step method to solve the identified problem is called algorithm, in other words, an algorithm is a procedure for solving problems. In order to solve a mathematical or computer problem, this is the first step of the procedure. An algorithm includes calculations, reasoning and data processing. Algorithms can be presented by natural languages, pseudocode and flowcharts, etc.

Activity

Goal: To give a glimpse of how to write a step by step algorithm for any problem/process in a bidirectional manner. To understand algorithms better, let us take an example of the process of making instant noodles.

Basic steps to make any instant noodles are:

16 Can you think of other ways to make instant noodles? Write them down.

Challenge Time

Before we jump into challenging ourselves, let us go through some ground rules for this activity: Step 1ͻTake a pan and boil approx. 200 ml of water. Step 2ͻAdd noodles and tastemaker to the boiling water.

Step 3

ͻStir constantly and cook in the open pan till the water is soaked by the noodles.

Step 4ͻServe Hot.

17

Write algorithms for the challenges given.

Now, exchange your attempts with your friend and see what procedure have they followed for the same tasks.

Did you notice any difference?

Making Tea/Coffee/Hot chocolate

Make Chapati/Rice

Make Samosa/Masala Dosa

Level 1 Level 2 Level 3 18 Yes! Write the differences below. No! How are they so similar? Re-look at your own algorithms now. Do you wish to make any changes to it? Is there a need to add/subtract step(s) in it? Take your time and make the necessary changes if required. Conclusion: Through this activity, we understood:

1. How to divide a task into several sub-tasks and the advantage of doing so.

2. There can be multiple approaches in terms of the number of sub-tasks or the

methods used in sub-tasks to solve a problem and the one which is the simplest and the most efficient should be chosen above all.

What is a flowchart?

A flowchart is the graphical or pictorial representation of an algorithm with the help of different symbols, shapes and arrows in order to demonstrate a process or a program. While computers work with numbers at ease, humans need visual representations to understand the information well and communicate it effectively. Thus, flowcharts are used to break a process into smaller parts and elaborate it using visual representations. Several standard graphics are applied in a flowchart: 19

Terminal Box

(Start / End)

Input / Output Process /

Instruction

Decision Connector /

Arrow The graphics above represent different parts of a flowchart. The process in a flowchart can be expressed through boxes and arrows with different sizes and colors. In a flowchart, we can easily highlight a certain element and the relationships between each part. Let us take a look as to how can we use flowcharts to represent algorithms.

How to Use Flowcharts to Represent Algorithms

Now that we have the definitions of algorithm and flowchart, how do we use a flowchart to represent an algorithm? Let us take a look at given examples and see how they work.

Example 1: Print 1 to 20:

Algorithm:

Step 1: Initialize X as 0,

Step 2: Increment X by 1,

Step 3: Print X,

Step 4: If X is less than 20 then go back to step 2.

Flowchart:

20 Example 2: Convert Temperature from Fahrenheit (Ԭ) to Celsius (Ԩ)

ALGORITHM FLOWCHART

Step 1: Read temperature in

Fahrenheit

Step 2: Calculate temperature with

formula C=5/9*(F-32)

Step 3: Print C

Challenge time!

Let us practice what we have learnt so far. Write algorithms and draw flowcharts for the tasks given below. TASK 1: How to check whether the input number is prime or not?

TASK 2: How does a traffic signal work?

TASK 3: How to make an ATM transaction?

TASK 4: How to check if a light bulb is working or not? TASK 5: How to win a Rock, Paper, Scissors Game To know more about this game, go to

Test Your Knowledge

Q1) What is an algorithm?

Q2) What is a flowchart?

Q3) List down all the standard graphics for making a flowchart. 21

Chapter 2: Introduction to Python

In the previous section, you learnt about the different methodologies for programming. A programming language is a formal language that specifies a set of instructions that can be used to produce various kinds of output. In simple Words, a programming language is a vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Though there are many different programming languages such as BASIC, Pascal, C, C++, Java, Haskell, Ruby, Python, etc. we will study Python in this course.

What is a program?

A computer program is a collection of instructions that perform a specific task when executed by a computer. It is usually written by a computer program in a programming language. Before getting into understanding more about Python, we need to first understand what is

Python and why we need to use Python?

What is Python?

22

Why Python for AI?

Artificial intelligence is the trending technology of the future. You can see so many applications around you. If you as an individual can also develop an AI application, you will require to know a programming language. There are various programming languages like Lisp, Prolog, C++, Java and Python, which can be used for developing applications of AI. Out of these, Python gains a maximum popularity because of the following reasons:

Applications of Python

Python is used for a large number of applications. Some of them are mentioned below: 23

Getting started with Python

Python is a cross-platform programming language, meaning, it runs on multiple platforms like Windows, MacOS, Linux and has even been ported to the Java and .NET virtual machines. To write and run Python program, we need to have Python interpreter installed in our computer.

Downloading and Setting up Python for use

Download Python from python.org using link python.org/downloads Select appropriate download link as per Operating System [Windows 32

Bit/64 Bit, Apple iOS]

FOR EXAMPLE, for Windows 64 Bit OS

Select the following link

Python IDLE installation

Application of

Python

Web and

Internet

Developme

nt

Business

Applications

Games and

3D

Graphics

Database

Access

Software

Developme

nt

Desktop

GUI

Applications

24

CLICK ON

Next

CLICK ON

Browse

25

CLICK ON

C: Drive

ABC1 ABC2 ABC3 ABC4 ABC5

CLICK ON

Make New Folder

26

Name the Folder as

Python37

Name the Folder as

Python37

27

CLICK ON

OK

CLICK ON

Install

28
29
Run in the Integrated Development Environment (IDE) When we install Python, an IDE named IDLE is also installed. We can use it to run Python on our computer. IDLE (GUI integrated) is the standard, most popular Python development environment. IDLE is an acronym of Integrated Development Environment. It lets one edit, run, browse and debug Python Programs from a single interface. This environment makes it easy to write programs. Python shell can be used in two ways, viz., interactive mode and script mode. Where Interactive Mode, as the name suggests, allows us to interact with OS; script mode lets us create and edit Python source file.

Interactive Mode

You can see the above example, Python IDLE Shell account has >>> as Python prompt, where simple mathematical expressions and single line Python commands can be written and can be executed simply by pressing enter.quotesdbs_dbs14.pdfusesText_20
[PDF] the thirteenth amendment: modern slavery

[PDF] the three factors that are considered to be the cause of alcohol abuse are

[PDF] the three major causes of injury in the workplace include all of the following except

[PDF] the three meanings of meaning in life: distinguishing coherence

[PDF] the tiger king extra questions and answers

[PDF] the tiger king mcq

[PDF] the tragical history of romeus and juliet

[PDF] the transmission capacity of a line at 50 hz frequency as compared to that at 60 hz frequency is?

[PDF] the true tale of johnny appleseed

[PDF] the truth about 5g

[PDF] the truth about html5 pdf

[PDF] the ultimate gimp 2.10 guide pdf

[PDF] the union becomes the employees' representative if it receives

[PDF] the union of two segments can be a point

[PDF] the union of two undecidable languages is always undecidable