Introduction To Lists In Python (Python Tutorial #4)

preview_player
Показать описание
How to use Python lists.

Рекомендации по теме
Комментарии
Автор

it's sad to see that the first vid has millions of views and then as every new video comes, more people start to give up

Solify
Автор

I feel so lucky to find out your great channel. My programming knowledge was really low. I also have to point out that your comminication skills are extraordonary, you can easily teach whatever you want.. I will check out your all upcoming videos and please complete these series from beginning till the end. Do not break it at the mid part of all series like other youtube channels :( Thank you so much, from Turkey.

muratsendur
Автор

You teach me more in 2 minutes than my professor does in 2 hours. Thank you.

ianwang
Автор

Also pop can take a index, so it won't just delete the last element within a list. You can say pop(0) which will pop the first element in the list.

kamilbolka
Автор

The fact that i solved the "swap" thing in this video..make me think that i understaded what you said in the video..it felt so good when i solved it..then u said an easier way..lol
Great vid btw

baselqhawiesh
Автор

You mentioned nested lists but not how to access them. Given the list a = [1, 2, 3, [10, 20, 30]] how would you get '20'? Think about whats returned when you call a[3]... answer is below.








a[3][1] would return 20 :)

WhoForgotFlush
Автор

You make python look so easy. And you explain it very well than other youtube channels. Thanks!

gunpowderstudio
Автор

Thanks for the video and please continue this series...this is really helping me understanding python and I think I can do well in my exams now

shanqism
Автор

I am new to Python and your first 4 videos have helped me grasp the simple concepts that used to plague me. Your teaching style is definitely something that I can follow along with! Keep the videos coming!

khay
Автор

I noticed you didn't explain how to add integers or strings to lists _within_ a list. If anyone's curios, do the following:


Input: a = [5, 10, 15, 20, [2, 4, 6, 8]]
Input: a[4].append(10)
Input: print(a)
Output: [5, 10, 15, 20, [2, 4, 6, 8, 10]]

Note that in the second line where is says "a[3]" the 3 is the index number of the list within a list. That means what's basically happening is the "a[3]" calls for that index item, which is the list that's within the original list, then appends the number "10" to it.


Hope I helped :)

liliacfury
Автор

This is amazing i took the code to convert miles to km to make another converter, its a converter that tells you how old you will be when for eg. your mom is 50
The code is
def convert(Mom):
return Mom - the age (difference between your mom now)


then you say
print(convert(50))
My family were so amazed!
Tysm!

P_tricc
Автор

I have been 'practicing' code for a year now, do not give up, it is a great skill to have and you can learn so much of you just put in that little bit of effort. If you do not understand something don't be afraid to ask or the favorite for all developers "Google It".
Keep up practicing, you have to practice, practice, practice.

jamesbyford
Автор

Thanks for this series. I've been sending my students over here to get a more in depth understanding of python

Rhahkeem
Автор

First off thank you CS Dojo for such a lovely series which has made python so understandable for us. To all the new devs/programmers, I find the best use of my time is watching one of these videos daily, looking for at least 2 other videos on the topic (for instance this one I’d follow it up with 2 other videos about lists) then come back to these videos for a refresh. It’s crazy how fast we can learn with this amazing help, thank you again!

beelandbeeland
Автор

Hi YK..Thanks for these awesome videos.
I tried the assignment using all the topics you covered in this video and it worked.

b.append(b[0])
b[0] = b[2]
b[2] = b[3]
b.pop()
print(b)

piyushkumar
Автор

This series is awesome, but I would love it if you would also start an intermediate or even advanced playlist/series of python tutorials, such as sorting or creating trees. Or, consider making a pygame tutorial to teach people how to program with images and graphics, as I'm sure many people would be interested in learning how that worked. Just some suggestions! Keep up the awesome work.

GoingBongusMode
Автор

Thank you yk sugishita with love from India ❤

sanattaori
Автор

Funny that I could solve the exercise without his help first, and it succeeded, and it was exactly his answers.

Well done for teaching me how to crack the codes

THAFUYR
Автор

My solution:
b = ["banana", "apple", "microsof"]
b[0], b[2] = b[2], b[0]
print(b)

davidhandvrkerne
Автор

this is one of the most useful videos i have ever seen on youtube, I just switched from med to engineering and had literally no knowledge about computer and i didnt think learning python would be this essy online . i have searched for a couple of tutorials but this was the most useful one yet .Thank you so much

mdvlogs