0% found this document useful (0 votes)
13 views12 pages

RAIN-INN FUTMINNA AI With Python (DAY - 2)

The document outlines the second day of a 7-day Python workshop focusing on data structures. Participants will learn about installing Anaconda, various data structures such as lists, tuples, and sets, as well as arithmetic, logical, and bitwise operations. Additionally, it includes a comparison of data structures and resources for further learning in Python.

Uploaded by

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

RAIN-INN FUTMINNA AI With Python (DAY - 2)

The document outlines the second day of a 7-day Python workshop focusing on data structures. Participants will learn about installing Anaconda, various data structures such as lists, tuples, and sets, as well as arithmetic, logical, and bitwise operations. Additionally, it includes a comparison of data structures and resources for further learning in Python.

Uploaded by

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

7-DAYS PYTHON WORKSHOP

(RAIN-INN FUTMINNA)

DAY
2
Python Data
Structures
What you will learn!!!
• Installing Anaconda
• Intro To Data Structures
• Lists
• Tuples
• Sets
• Arithmetic Operations
• Logical Operations
• Bitwise Operations
• Comparison Of Data Structures
Installing Anaconda

 Downloading anaconda from its website.


(www.anaconda.com)
Introduction To Data Structures
Data structures refers to the containers that
allows us to store and organize data.

 Lists
 Tuples
 Sets
Python Lists
It is the collection of items that is ordered and
mutable (changeable). Think about a shopping
list that you can add, modify and remove
foodstuff items from.

 Access list items with index


 Modify list (append(), remove() and slicing..)
Python tuples
It is the collection of items that is ordered and
immutable (unchangeable) once created.

 Access list items with index


 Cannot be modified
Python sets
It is the collection of unique items that is
unordered and unchangeable(new items can
be added and existing items can be removed).

 Itcannot have a duplicate value(all items


are unique value)
 Items cannot be changed
 Existing items can be deleted
 New items can be added
Arithmetic
Operations
It allows us to perform mathematical operations
on numbers.
Common operations are: -, +, /, %, *, **…..

Logical
Operations
It allows us to perform boolean operations on
conditions. They return True and False based on
conditions.
Common operations are: and, not, or
Bitwise
Operations
They work on bits (0s and 1s), performing
operations like AND, OR and shifting.
Common operations:
& - Bitwise AND
| - Bitwise OR
~ - Bitwise NOT
Data Structures
Comparison
•Lists are ordered, changeable and allows
duplicate items.

• Tuples are ordered, unchangeable and allows


duplicate items.

• Sets are unordered, unchangeable(although


you can add new items and delete existing
items) and does not allow duplicate items.
Websites to learn Python

 www.w3schools.com
 www.coursera.org
 www.geeksforgeeks.org
 www.edx.org
 www.datacamp.com
 www.javatpoint.com
 www.udacity.com
Thanks For
Listening!!!

You might also like