Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
8 views10 pages

Python 6

The document outlines various operations and methods for lists, tuples, and dictionaries in Python. It includes creating, manipulating, and performing basic operations such as length, concatenation, and membership checks. Additionally, it covers specific methods for each data type, including appending, removing, and updating elements.

Uploaded by

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

Python 6

The document outlines various operations and methods for lists, tuples, and dictionaries in Python. It includes creating, manipulating, and performing basic operations such as length, concatenation, and membership checks. Additionally, it covers specific methods for each data type, including appending, removing, and updating elements.

Uploaded by

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

Experiment No:6

Name: Rutuja Bharat Shinde


Roll No:B.sc-1
Class:
Date:
Operations on Lists:
1) Create
List:

2) Basic operations on list:


a) Length:

b) Concatenation:
c) Repetation:

2) List Methods:
a) Append:

b) Count:

c) Insert:

d) Remove:
e) Pop:

f) Reversed:

4) Iteration:

5) Slicing:
6) Updating element on a list:

7) Deleting element on a list:

8) Max operation on a list:

9) Min operation on a list:


10) Membership operators:
a) In:

b) Not in:
Operations on Tupels:
1) Create
tuple:

2) Basic operations on Tuples:


a) Length:

b) Concatenation:

c) Repetation:

3) Membership operation:
a) In:
b) Not in:

4) Iteration:

5) Comparision:

6) Maximum:

7) Minimum:
8) Deleting element in a tuple:

9) Updating tuple:

10) Slicing:

11) Empty set:


Experiment No:7
Name: Rutuja Bharat Shinde
Roll No:218
Class:B.sc-1
Date:
Operations on dictionary
1) Create dictionary:

2) Basic operations on a dictionary:


a) Length:

3) Dictionary methods:
a) Clear(Dict.clear()):
b) Dict.has_key(key):

c)Dict.items():

d) Dict1.key():

e) Dict.update(Dict2):

f) Dict.values:

4) Delete dictionary element:

You might also like