School Revise · Class 11 Artificial Intelligence · Unit 3
Code 843, Class 11. Python is the language of AI. Here we write programs, use control statements, and meet the NumPy and Pandas libraries.
|
|
Python is simple and powerful, and AI is built with it. We print output, store data, make decisions and loops, and use libraries like NumPy and Pandas.
print() shows output and a variable stores a value. if and else make decisions, and for and while loops repeat work.
|
for i in range(1, 4): print(i) Output: 1 2 3 |
NumPy works with arrays of numbers. import numpy as np; a = np.array([1, 2, 3]); and a.sum() adds them. NumPy is fast for the maths that AI needs.
Pandas handles data in tables. A Series is a labelled column and a DataFrame is a table, used to load and study data before training a model.
Explore the idea by tapping. The interactive opens right here in the lesson.
Write and run real Python right here in the lesson, then work through the practice problems with answers.
Type each one into the code lab above, then open the card to see the worked solution and its output.
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
SOLUTION
OUTPUT
print().
NumPy.
Pandas.
Series.
|
Python is the language of AI. print() shows output, variables store values, and if, for and while control the flow. NumPy works with arrays of numbers and is fast for maths (a.sum(), a.mean()). Pandas handles data in tables: a Series is a labelled column and a DataFrame is a table, used to load and study data before training a model. |
| Open the Virtual Lab |
These free Class 11 Artificial Intelligence (Code 843) notes explain Python programming for AI, basics and control statements, and the NumPy and Pandas libraries with clear examples and practice, for CBSE students across India and the Gulf including the UAE, Saudi Arabia, Qatar, Oman, Kuwait and Bahrain.
© 2026 School Revise. All rights reserved. Original content aligned to the CBSE and NCERT Class 11 Artificial Intelligence syllabus. Unauthorised copying is not permitted.