Python Lists & Tuples for Beginners | Python tutorial

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

Learn Python lists & tuples for beginners in this Python tutorial. Lists can hold many values, but we can refer to them with one variable name. Tuples differ from lists because their values and order cannot change. Much more in the video lesson!

⭐ Become a full-stack dev with Zero To Mastery Courses:

👇 Follow Me On Social Media:

Python Lists & Tuples for Beginners | Python tutorial

(00:00) Intro
(00:05) Welcome
(00:13) Lesson 5 Correction
(00:45) Quick Setup
(01:25) What are lists?
(02:16) Check for a value in a list
(03:06) Retrieve a list value by index
(04:10) Retrieve a range of list values
(06:11) Get the length of a list
(06:49) Appending items to a list
(10:06) Inserting values at a specific list index
(11:55) Replacing list values
(13:16) Removing, deleting, clearing
(15:57) Sorting lists
(22:47) Copying lists
(25:09) List constructor and data type
(26:27) Tuples vs Lists
(27:55) If you need to change a tuple
(29:00) Unpacking tuples
(30:26) Using dot notation to find methods

📚 Tutorial References:

Was this Python Lists and Tuples tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.

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

Absolutely AWESOME pedagogy, Sir Dave. Salutations from France.

xyzxyz
Автор

Thank you very much Dave. This video, and all your other videos have been very great.

allendavis
Автор

God bless you and your family Dave, you are a good guy.

xnjinim
Автор

Great lesson! I do want to mention something about sorting.... and call me out if I am mistaken. You can use users.sort(key=str.upper) as well to organize lowercase data. Also, none of the key= is necessary if the change is AFTER the .sort() - only before.

deltadek
Автор

Monty!!
This series is great for us “monolinguals”.

doors
Автор

very good. Downloaded your videos so i had to go through them here to give you thumbs up and a comment.

dickschweiger
Автор

first :)
thanks for the video, well explained

_MoshikoAz_
Автор

These lessons are so good, Thanks so much. Question how does one remember all the ins and outs of the Python commands? I wait a day and try to remember how you showed the commands to accomplish things and I completely forget what you said and have to go back to see what you said. Very Frustrating!

gredhawk
Автор

thanks a lot for teaching . you are the Best

laoying
Автор

Mr Gray, you are an awesome experienced programmer, thank you for the time you spent to make these tutorials, they will have a profound impact on the career of a lot of programmers for sure! There’s one questions I’d like about a topic that has been bothering since November. What will programmers do when AI gets good at programming in your opinion? Thank you in advance…

no-reply
Автор

I recently couldn't comment on your videos, YT kept deleting them directly after submit,
Just wanted to say it's a nice video as usual, so thanks 💯
BTW, 30:58 you can hit ctrl + space to bring the IntelliSense list back

ahmad-murery
Автор

I think you should have talked about tuples that have only one value and mention the trailing comma. I remember the first time I came across such syntax, it was really confusing. Another thing I think that should have been included in this video is the topic of List Comprehension. Other than that, everything else was just great.

allendavis
Автор

I think you shouldn't worry about terminologies, like calling list what's exactly an array. You could just state that in Python it's called a list, but that's just a terminology factor.

AmodeusR
Автор

Is there a way to see if 2 lists containing identical elements are actually the same list in RAM? i.e., is there some characteristic (other than the name of the list) available to a Python coder that distinguishes them?

danbromberg
Автор

Thank you sir Dave ♥️. Can you make Django tutorial using MVC architecture?

bayanibjubay-ubay
Автор

Hey man, from the video [“Dave”, 42, True]
Are you 42?

Btw thanks for the video. I am so excited to learn more 🙏🏽

proexpert
Автор

Hey Dave. Please tell me when you inserted 'dave' (line 54) at 17.00 and then changed it to ['dave'] where did those 'd', 'a', 'v', 'e' go? Because you did not delete those from the list. I'm baffled how did those vanish at 17.22 ? Hoping to hear from you soon.

thltdwh
Автор

Bro deleting items on lists like the mafia deletes its members.

davids.
Автор

I'm surprised that "|" worked though. (lesson05)

michaelhall