AI Class 10 Advance Python Comprehensive notes

In this article, we are going to discuss AI Class 10 Advance Python comprehensive notes. In class 9, you learnt about the basics of python. So let us start AI Class 10 Advance Python notes.

Follow this link to access the study material for Artificial Intelligence class 9.

Artificial Intelligence Class 9 Notes

AI Class 10 Advance Python

Before starting AI Class 10 Advance Python, you need to just recall the Python concepts you learnt in class 9. So here I will provide a short tour for the same. So you have already worked with Python and Jupyter Notebook in class 9.

Introduction to AI Tools

Follow this link to understand to get the answers of these questions:

  1. AI tools for python
  2. What is Jupyter Notebook?
  3. How to access Jupyter Notebook?
  4. Anaconda Navigator
  5. Introduction to virtual environment
  6. How to create virtual environment
  7. Install Jupyter Notebook dependencies

Introduction to AI tools

Introduction to Python

In class 9, you learned the basics of Python. In this section of AI Class 10 Advance Python, we will take a quick walk-through of python basics. So let’s have a recap of it!

What is Python?

Read the following quick pointers related to python:

1One of the popular programming languages
2Developed by Guido Van Rossum at Centrum Wiskunde & Informatica
3It was first released in 1991
4Python got the name from BBC comedy series from 1970s – “Monty Python’s Flying Circus”
5It can be used to follow procedural approach and object-oriented approach
Basics of Python

Why Python?

Nowadays Python is the first choice of programmers, developers, data scientists, and many more. So the question comes in mind that why python? For an Answer just have a look at the following table:

1AI is trending technology of the future, which requires a programming knowledge
2Python is the best suitable programming language for AI because of the following features :
  • Very easy to learn, read and maintain: The syntax of python is very easy. It has a simple line structure of a program with fewer symbols and brackets. So that attracts people to write code in Python.
  • Provide a broad standard library: It supports a broad category of built-in libraries to do work, which reduces the efforts and saves time of developers.
  • Interactive mode and script mode: It supports interactive mode and script mode that allows the easy process of testing and debugging.
  • Portability and compatibility: Python can run on multiple platforms and operating systems with almost similar kinds of interfaces.
  • Extendable: It provides a more efficient way to customize the code according to the need of the developer.
  • Databases and Scalable: Python provides major support to the open-source and commercial databases along with a better structure and supprt.

Applications of Python

Python is used in large areas of application today. Some of them are as following:

  1. Website Development
  2. Application Development
  3. Business Application
  4. Games and 3D Graphics
  5. Database Access
  6. Software Development

Python in Jupyternotebook

Follow this link to read about the basics of Python covered in Artificial Intelligence Class 9. You will learn about:

  1. How to create a virtual environment using jupyter notebook?
  2. Parts of Jypter notebook window
  3. Writing a program using jupyter notebook
  4. Using print() function in python and printing multiple lines

Introduction to Python using Jupyter Notebook

Basics of Python

The next section of AI Class 10 Advance Python provides information regarding python fundamentals. Follow this link to know more about basics python.

Python fundamentals for AI

Conditional and Iterative Statements

Follow this link for python conditional statements:

If else in Python

Loops in Python

Python Packages

The python packages are a collection of codes or functions of modules of similar types. Python provides various open source packages to use in the programs. Follow these steps to use any package:

Python packages require installation before use. Follow these steps to use them:

  1. Open anaconda navigator and activate virtual environment
  2. Install numpy package by using this commands:
    • conda install numpy
AI Class 10 Advance Python Comprehensive notes
conda intall numpy
  • Press y when asked to do so.
AI Class 10 Advance Python Comprehensive notes

After pressing y, it will start the installation process. Wait until the process stops.

You can install multiple packages by writing packages name to gether. For example

conda install pandas matplotlib

After installation of packages, you need to import them into the program. You can import these modules by following ways:

  1. import numpy
  2. import numpy as np
  3. from numpy import array
  4. from numpy import arrat as arr

Python provides some readymade packages. They are:

  1. NumPy – It is used for numerical array and its functions. It is most useful when we are working with large data sets and requires calculations. It also provides large support for manipulations.
  2. OpenCV – It is mainly used for image processing and support various functions related to image manipulations.
  3. Matplotlib – It is used to represent the data in visualization mode. It helps user to visualize data to understand them.
  4. NLTK – It stands for Natural Language Tool Kit supports features related to textual data. It is used for Natural Language Processing.
  5. Pandas – Pandas is used to handle 1D and 2D data structures of python. There are two major data structure used with python. They are series and Dataframe which is supported by pandas.

That’s all from the advanced python AI class 10. We will see the practicals of Matplolib and Pandas later.

I hope you enjoyed this article.

Leave a Reply