Тёмный

Python Lists & Tuples for Beginners | Python tutorial 

Dave Gray
Подписаться 313 тыс.
Просмотров 11 тыс.
50% 1

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
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!
💖 Support me on Patreon ➜ / davegray
⭐ Become a full-stack dev with Zero To Mastery Courses:
- The Complete Python Developer: bit.ly/CompPythonDev
- Complete Machine Learning & Data Science: bit.ly/CompMachineLearning
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegray.codes/
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
👇 Follow Me On Social Media:
Github: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
🔗 Source Code: github.com/gitdagray/python-c...
🔗 Playlist for this Python Course: bit.ly/dg-beginners-python
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:
🔗 Python Official Site: www.python.org/
🔗Visual Studio Code Official Site: code.visualstudio.com/
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

Опубликовано:

 

16 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@allendavis9066
@allendavis9066 Месяц назад
Thank you very much Dave. This video, and all your other videos have been very great.
@7doors847
@7doors847 Год назад
Monty!! This series is great for us “monolinguals”.
@user-xn5ji6ni5m
@user-xn5ji6ni5m 8 месяцев назад
God bless you and your family Dave, you are a good guy.
@mortezafarhangpanah256
@mortezafarhangpanah256 4 месяца назад
Amazing Dave ❤❤
@ram_qr
@ram_qr Год назад
Thanks for another brilliant lesson!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Glad you liked it!
@laoying20
@laoying20 24 дня назад
thanks a lot for teaching . you are the Best
@dickschweiger289
@dickschweiger289 6 месяцев назад
very good. Downloaded your videos so i had to go through them here to give you thumbs up and a comment.
@delta13dek
@delta13dek 2 месяца назад
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.
@allendavis9066
@allendavis9066 Месяц назад
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.
@alexanderkomanov4151
@alexanderkomanov4151 Год назад
Thanks for another good lesson!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome!
@no-reply468
@no-reply468 Год назад
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…
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Good programmers solve problems. The difficult part isn't the syntax or the programming language. The difficult part is taking the "user stories" - what the stakeholders tell you they want - and they are not usually good at communicating it - and turning that into a code solution that solve their problem the way they want it. If you can do that, you will always have a job.
@no-reply468
@no-reply468 Год назад
@@DaveGrayTeachesCode Straight to the point as always! Let’s hope that we will be able to do the coding because it’s kinda fun. Thank you very much!
@utinthein7274
@utinthein7274 Год назад
Thanks You, Sir
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Most welcome!
@AmodeusR
@AmodeusR Год назад
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.
@danbromberg
@danbromberg 9 месяцев назад
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?
@bayanibjubay-ubay8084
@bayanibjubay-ubay8084 Год назад
Thank you sir Dave ♥️. Can you make Django tutorial using MVC architecture?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome! Thank you for the request! I can do something more advanced like that after I finish building this Python for Beginners series.
@SURYAPRAKASHCS-fs5yf
@SURYAPRAKASHCS-fs5yf Год назад
Sir Upload Video About GPT - 4
@_MoshikoAz_
@_MoshikoAz_ Год назад
first :) thanks for the video, well explained
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You're welcome!
@ahmad-murery
@ahmad-murery Год назад
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
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Good to hear from you again, Ahmad! And nice suggestion! 💯
@delvorin1841
@delvorin1841 8 месяцев назад
Nice Tip.
@user-th3lt4dw1h
@user-th3lt4dw1h 9 месяцев назад
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.
@Proton-9788
@Proton-9788 3 месяца назад
Python re ran the program, so it was replaced with ''dave'
@proexpert6325
@proexpert6325 11 месяцев назад
Hey man, from the video [“Dave”, 42, True] Are you 42? Btw thanks for the video. I am so excited to learn more 🙏🏽
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
You're welcome! No, I often reference the number 42 though. Look up hitchhiker's guide to the Galaxy.
@FletcherL201
@FletcherL201 2 месяца назад
take a shot every time he says tuple
@michaelhall8981
@michaelhall8981 8 месяцев назад
I'm surprised that "|" worked though. (lesson05)
@davids.8509
@davids.8509 9 дней назад
Bro deleting items on lists like the mafia deletes its members.
Далее
World’s Deadliest Obstacle Course!
28:25
Просмотров 58 млн
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1 млн
5 Uncommon Python Features I Love
15:09
Просмотров 130 тыс.
Python File Handling for Beginners
22:40
Просмотров 9 тыс.
PLEASE Use These 5 Python Decorators
20:12
Просмотров 95 тыс.
Coding Was Hard Until I Learned THESE 5 Things!
7:40
Просмотров 998 тыс.
Python Scope tutorial for Beginners
19:50
Просмотров 6 тыс.
Python lists, sets, and tuples explained 🍍
15:06
Просмотров 230 тыс.