Python Tutorial for Beginners 7 - Python Lists

preview_player
Показать описание
In this video I am going to show What are Lists and How to use lists in python. A List in Python is a kind of Collection that allows us to put many values in a single “variable”. A collection is nice because we can carry all many values around in one convenient package. So What is a List? List is An ordered set of values:
Ordered: 1st, 2nd, 3rd, …
Values: can be anything, integers, strings, other lists
List values are called elements. A string is an ordered set of characters so it is “like” a list but not exactly the same thing.
The list of all functions which can be use with Python Lists:
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'clear', 'copy', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

python tuples
python beginner
python beispiel
python add list
python empty tuple
array python example
python sequence vs list
python find sequence in list
python convert list to sequence
python escape sequences list
python sequence of numbers
python string endswith
python append to list
python join
python slice list
python compare tuples
python dicts
python list operator
python tupel
python empty list
Рекомендации по теме
Комментарии
Автор

Your teaching is superb and fabulous and no paid content can match the quality of your free content

sumitchawla
Автор

Big thanks, I feel encouraged to learn more!!

darkenergyhotep
Автор

bro! your tutorials are awesome i really appreciate your work keep teaching us like this.

poonamkedaria
Автор

sir thank you very much for the tutorials, now i don't have to go out for any classes and pay hefty fees. . .Thanx for the tutorial, and i have also suggested many of my friends to follow up the tutorials provided by you and also asked them to subscribe your channel, Once again thank you for free knowledge

heller
Автор

Thanks for all of your videos they are really helping me learn python quickly.

TheArchitect
Автор

you ppl helped me a lot in learning python..
Thank u so much my dears.

SuryaTeja-nnwt
Автор

Hello ! How we can print length of the lists in case if we have to find how many alphabets are there, means no of letters how we can print, is there is any specific built-in function to run this situation.

tusharjena
Автор

when v give input in double quotes its o/p in console is expected the same but it is in single quotes why does it so happen.?

AbhinayKacham
Автор

thanks. I have question that why I can't use the function ''len or max'' in PY file ?

md.shorifulislam
Автор

what if i wanna get two index values like index[0] and index[1] and how can i get the values that starts from a, b like that for ex if i want the names that starts from a, b etc . how can i get that could you please reply.

meghan
Автор

Thank you for helping me understand, though if you could make a video where a list is converted into a matrix I will greatly appreciate it because I'm having troubles doing that.

muhammadsuhailseedat
Автор

sir u explanation is spr....thank u so much sir..

exclusiveexplorers
Автор

What are the other possible lists for names ? Any reference from where can I get the complete list?

megaspr
Автор

i tried max function on a list which had two kinds of data types ie integer and float.. and it worked !! No error.. Thanks for these video

mahimabansal
Автор

To merge values of list 2 with list1, we use <list1>.extend (list2). So the value of list1 is always a combined value of both.
How to remove (or detech) the lists that were merged earlier? Is it something like <list1>.remove (list2).

rdxrds
Автор

@programmingKnowledge How can we add any value in d middle of list ?

vrajverma
Автор

names.remove always work from index 0. if i want to remove 100th item (total number of items 150) it will start looking from 0 always ?

shyamguptarecipies
Автор

I also found out that you can extend a list with a variable and it will add each individual character contained in the variable to the list! ...Surprised me that it worked!

daydreamsinmusic
Автор

thanks, i learned in 10 mins, much more than what i learned from my Prof in 50 mins

ForzaAllegri
Автор

When you write full stop, there are options given and among them are the ones we used.
How can I use the reminder. Anyone help please!

MohamedAli-dxfp