Page 301 - Ai_C10_Flipbook
P. 301
At a Glance
• Anaconda is a free, open-source Python and R distribution for Data Science and AI, simplifying package management
and deployment.
• Jupyter Notebook is a web-based tool for coding, visualization, and AI development, supporting multiple languages
and pre-installed with Anaconda.
• A virtual environment in Python isolates project dependencies, allowing different Python versions and packages; it
can be created and activated using Anaconda commands.
• Jupyter Notebook's user-friendly interface includes a toolbar, menu options, and key components like notebooks,
kernels, and cells, enabling efficient code execution, editing, and management.
• Python, designed by Guido van Rossum in 1991, is a general-purpose, object-oriented, and easy-to-learn high-level
programming language named after the BBC show “Monty Python’s Flying Circus.”
• Python is widely used for AI due to its easy syntax, large standard library, interactive mode for testing, cross-
platform compatibility, extensibility, and strong database support.
• Python is used in web development, GUI applications, databases, business applications, scientific computing, game
development, and software development due to its versatility and rich libraries.
• Python supports simple, multiline, and multiple statements, with comments using # for single-line and triple quotes
for multi-line.
• Modules are individual Python files containing reusable code, while packages are collections of related modules;
commonly used packages include NumPy, OpenCV, Matplotlib, NLTK, and Pandas for various computing tasks.
• NumPy is a powerful Python library for numerical computing, offering fast and memory-efficient array operations.
It supports mathematical functions, integrates with other libraries, and is essential for data science and Machine
Learning.
• Pandas is an open-source Python library for data manipulation and analysis, providing structures like Series and
DataFrame. It is built on NumPy and supports labelled and unlabelled data processing.
• Matplotlib is a Python library for data visualisation, offering various plots like line graphs, bar charts, and scatter
plots using the pyplot module.
• Image processing operations in OpenCV include reading images, accessing pixel values, cropping, shading, copying,
resizing, and saving images using various functions like imread(), imshow(), resize(), and imwrite().
Exercise
Solved Questions
SECTION A (Objective Type Questions)
uiz
A. Tick ( ) the correct option.
1. Which of the following is used to install the NumPy package in Python?
a. pip install pandas b. pip install numpy
c. install numpy d. python install numpy
2. What is the main purpose of the Pandas library in Python?
a. Data visualization b. Data manipulation and analysis
c. Scientific computing d. Image processing
Advance Python (Practical) 299

