0% found this document useful (0 votes)
23 views1 page

Pop Count Append Insert : List Functions

This document provides examples of list functions like Pop(), Count(), Append(), and Insert() in Python. It also demonstrates tuples which are immutable ordered sequences of elements and dictionaries which are mutable mappings of unique keys to values. The document shows how to do slicing on a dictionary by accessing elements using keys and indexes.

Uploaded by

bhavana manglik
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
23 views1 page

Pop Count Append Insert : List Functions

This document provides examples of list functions like Pop(), Count(), Append(), and Insert() in Python. It also demonstrates tuples which are immutable ordered sequences of elements and dictionaries which are mutable mappings of unique keys to values. The document shows how to do slicing on a dictionary by accessing elements using keys and indexes.

Uploaded by

bhavana manglik
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 1

List Functions

Pop()
Count()
Append()
Insert()

Variable Type – Tuple


Suppose, a=(1,3,4,”b”)
We can not change tuple data,it is fixed.

Dictionary

My_dict={“Name” : “Bhavana” , “Age” : “23”}

How to do slicing?
>>> my_dict = {"Name" : ["Abc" , "CDE"], "Age" : ["22", "20"]}

>>> my_dict["Name"][1]

o/p-> 'CDE'

You might also like