Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: Introduction to data structure in Python
Description: There is a whole introduction to data structure in Python
Description: There is a whole introduction to data structure in Python
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
L2: Introduction To Data Structures In Python | Lesson 2 | DSA In Python |
@CodingNinjasIndia
Coding Ninjas
This lesson is a part of TSA python playlist by coding ninja which have 100 lesson videos and we
encourage you to watch this free series of DSA python playlist and master DSN python
...
Data structures are linear data structures and non-linear data
structures
...
Data structures can be divided into linear and non-linear categories in data structures but
data structures can also be visualizing two categories in Python specific first is built-in data
structures and user defined data structures
...
in case of
user-defined data structures we have all that data structure linear non- linear data structures like
stack queues then we have trees linked list graph
...
Let us now see how we can create a multi-dimensional list means by
nesting a lift inside a list we can also have a list inside a lift
...
In Python negative indexing
represents position from the end of the array so in Python negative second index represent
position from end of array and instead of writing left Len here is a square bracket left length then
we have left and let 's say I want to access the last element of this list so I can directly write uh
print list
...
accessing the element directly from the end so also the insertion
and deletion at the end of the list can also become costly in case where the pre-allocated
memory becomes full so moving forward in this video we will discuss Tuple
...
Tuple is like
indexing works just like in lift and a
...
tuples
...
Tuple does not support the methods such as
append extend pop pop remove
...
In
Python a dictionary can be created by placing a sequence of element within the curly braces and
separated by commas
...
Keys ca n't be repeated and must be immutable so keys are immutable and
can not be repeated
...
In Python fat is an unordered collection of data type that is mutable mutable and has no
duplicate elements in it
...
A set can not have mutable elements like lift or dictionary as it is mutable
so let us create a set and have a better understanding on set so to creating a set we just have
the similar process as we were seeing in this video that is let 's say I have created a set one and
using an inbuilt function we can create a
...
The thing about fat that you need to remember is
that a set contain only unique element but that at the time of set creation multiple duplicate
values can also be passed
Title: Introduction to data structure in Python
Description: There is a whole introduction to data structure in Python
Description: There is a whole introduction to data structure in Python