School Revise · Class 10 Artificial Intelligence · Unit 3
Code 417, Class 10. AI is built with Python. Here we use packages, and the NumPy and Pandas libraries for data.
|
|
Beyond the basics, Python uses packages (extra libraries) for AI. Two key ones are NumPy (number arrays) and Pandas (data tables).
A package is a set of ready made tools. We use one with import, for example import numpy as np. Jupyter Notebook is a popular place to write and run AI code.
|
import numpy as np a = np.array([1, 2, 3]) print(a.sum()) Output: 6 |
NumPy works with arrays of numbers and is fast for maths. a.sum(), a.mean() and a.max() summarise an array quickly.
Pandas handles data in tables. A DataFrame is a table; df[“col”].mean() gives an average and df.groupby summarises groups, ready for 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
package (library).
NumPy.
Pandas.
import.
|
AI is built with Python and its packages. A package is a set of ready made tools, added with import. NumPy works with arrays of numbers and is fast for maths (sum, mean, max). Pandas handles data in tables: a DataFrame holds rows and columns, mean gives an average and groupby summarises groups, ready for a model. |
| Open the Virtual Lab |
These free Class 10 Artificial Intelligence (Code 417) notes explain advanced Python for AI, packages and imports, 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 10 Artificial Intelligence syllabus. Unauthorised copying is not permitted.