Python Beginner Tutorial 5 For Absolute Beginners - (Lists)

preview_player
Показать описание

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

14:36
my_list[-1] is not the end of the list, it is the penultimate member of the list. Therefore my_list[1:-1] return all but the first and last element. my_list[1:] goes to the very end of the list (and is equivalent to my_list[1:len(my_list)].

dermotmallon
Автор

Damn Chris you're on a roll, thank you for putting so much effort into these videos, I completely get why you speak so highly of Python and Django, they're such a pleasure to work with.

I've been playing around with Django for a few days, and I'm completely hooked already, it's very intuitive, but of course there's a lot of Python concepts that I want to understand at a deeper level — I hope you'll continue these series!

techstacker
Автор

Getting back into programming after years away and learning Python with your videos. Thanks for the help!

PerryAhern
Автор

dude thank you so much for these python vids, out of all the youtubers I've seen who do beginner tutorials, you're easily the best at explaining it in an understandable way. I feel like I'm actually getting a grasp on this stuff whereas with other guys, I'm stumbling around and mostly just copying them. #Subbed.

ricky
Автор

Chris your tutorials are great man, much better than the average tutorials which don't teach practical Python. Really appreciate this series as I'm trying to get a job in Python someday.

Alex-htoq
Автор

I'm only on day two of learning from this series but I noticed that if you try

new_list = my_list[1:]

Without giving an ending list item it will go to the end.
Thanks for putting out these great videos Chris! I'm really enjoying this series.

jaysonsiebold
Автор

For that subject I used
c_list = a_list[1:]
print(c_list)
c_list = a_list[1:len(a_list)]
print(c_list)
And got to the end of the list with both.

dpdodson
Автор

Thank you very much; you really have an act for breaking things down in an easy to understand format.

cmann
Автор

Excellent. I'm learning again. Keep them coming...

captgrant
Автор

Hey Chris Great Job.  Been away from coding 40+ years.

colinsmith
Автор

You are back again with tutorial series. I believe most beginners will avail from your tutorial like i availed from you. Classes and nested functions are not covered in detail in most tutorial. I hope you will provide in depth knowledge on it. I have one question. Can you do a video on Internet of things(theory)?

tushant
Автор

I've been playing with pop() and it not just grabs the information but actually removes it from the list simultaneously. so if I do:

my_list.pop()
print(my_list)

it prints everything but the last entry. I'm guessing that the only difference between pop() and remove() is that with pop it grabs the information at the time and you can retain it if assigned to a variable like you showed. *also remove() doesn't work by index number?* I might have missed it because I've been stopping and starting a lot to play around with things but I don't think you explained that the info gets removed from the list.

ThePhantazmya
Автор

If you want the 2 last items of the list you can do this my_list[-2:]

SuperMichielv
Автор

thank you very much your teaching method is very helpful

amarnafie
Автор

if you want to take the list in reverse you just have to do:
new_list = my_list[::-1]

hexedvid
Автор

I keep getting this error message when I try to run

There was an error in starting the debug server. Error = {"code":"ECONNREFUSED", "errno":"ECONNREFUSED", "syscall":"connect", "address":"127.0.0.1", "port":3000}
There was an error in starting the debug server. Error = {"code":"ECONNREFUSED", "errno":"ECONNREFUSED", "syscall":"connect", "address":"127.0.0.1", "port":3000}

What am I doing wrong?

Great series, by the way.

jwjones
Автор

Isn't it an array because giving you function like pop using index comes under arrays ??

nirajparab
Автор

around 1:55 when the variable in the list is typing it looks like there is some key that allows go to outside the bracket without using the the arrows key, do anyone knows how to do this? thank a lot for help

ziomp
Автор

so what's the difference between the .append and .insert? is it only that .insert can add items to the list at specified index?

hussainm
Автор

dude, when i start debugging it, says "debug adaptter has been terminated unexpectedly"

AliMalik-ytcp
join shbcf.ru