0% found this document useful (0 votes)
11 views

Lab 1 - Machine

Anaconda is a comprehensive Python distribution that simplifies package management and deployment, including Jupyter Notebook and scientific libraries. The document provides installation instructions for Anaconda, an introduction to Jupyter, and an overview of Python data types such as lists, tuples, and dictionaries, as well as libraries like Numpy and Pandas for data manipulation. Additionally, it includes a link to a Microsoft Teams channel for a Machine Learning course.

Uploaded by

rocedo8037
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Lab 1 - Machine

Anaconda is a comprehensive Python distribution that simplifies package management and deployment, including Jupyter Notebook and scientific libraries. The document provides installation instructions for Anaconda, an introduction to Jupyter, and an overview of Python data types such as lists, tuples, and dictionaries, as well as libraries like Numpy and Pandas for data manipulation. Additionally, it includes a link to a Microsoft Teams channel for a Machine Learning course.

Uploaded by

rocedo8037
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Lab 1

Anaconda
Anaconda is the full distribution of Python, it installs Python, Jupyter notebook, and other relevant
libraries for scientific computing that aims to simplify package management and deployment.

Install Anaconda
Go to the following link: https://www.anaconda.com/download

Enter your Email address or easily skip registration.


Select the suitable operating system then click on the Download button.
Open the executer then follow the steps.

1. 2.

3. 4.

5. 6.
Introduction to Jupyter
In Notebook you write and run your code in a small segment and the segments are called cells.

Example

To execute your code, Press control + enter.

Python Syntax
Arithmetic Operations

Comparison Operators
Strings

Type() Function in Python


List
If we want to represent a group of values as a single entity where insertion order required to preserve, and
duplicates are allowed then we should go for list data type.
1) Insertion Order is preserved
2) Heterogeneous Objects are allowed
3) Duplicates are allowed
4) Growable in nature
5) Values should be enclosed within square brackets.

Tuple
Tuple data type is exactly same as list data type except that it is immutable (we cannot change values).
Tuple elements can be represented within parenthesis.
Tuple is the read only version of list
Dictionary
If we want to represent a group of values as key-value pairs, then we should go for dict data type.
Eg: d = {101:'one',102:'two', 103:'three'}
Duplicate keys are not allowed but values can be duplicated. If we are trying to insert an entry with
duplicate key, then old value will be replaced with new value.
Numpy
Numpy is the code computing package in Python.
To use numpy we need to import the module.

Create Numpy Array


We can either convert existing Python list or tuple or we can generate a numpy array using functions like
arange and line space.
Pandas
Pandas is a software library written for Python programming language for data manipulation and analysis.
To use pandas we need to import the module.
Teams Link
Machine Learning - Fall 2024 - Eng. Sara | General | Microsoft Teams

You might also like