Python Tutorial: Slicing Lists and Strings

preview_player
Показать описание
In this video we will look at how to slice lists and strings in Python. Slicing allows us to extract certain elements from these lists and strings. This can be extremely useful for stripping out certain values from lists or getting a substring of a characters from a string. Let's take a look at a few code examples.

The code from this video can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

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

Corey is the type of guy that when the ads come on his videos, i watch them and then click on them so he can get paid more. Amazing

revazzhvania
Автор

8 years later, this is still helpful. I struggled understanding slicing for my lesson I had.

CutieLexiArt
Автор

Corey - fantastic videos man. People often fail to understand the importance of quality explanations. They might think "Oh, I'm stupid, I can't understand this complex concept" when the reality is, someone just hasn't explained it well enough. Excellent work, I really appreciate your channel. Thanks, and cheers!

erichanko
Автор

I've learned more from your videos today than through an entire semester of Python3 at uni. Thanks so much!

cade
Автор

Hey Corey, this is just amazing.i was so much confused with reverse slicing and I am not any more.this is world class tutorial. Cheers man !!!

lakshmikanthappu
Автор

Corey is the clearest and most concise Python teacher around. You're the best, Corey!

bluetortilla
Автор

Dude. You're the freakin' man. If anyone hasn't told you that today, well there ya go. This helped me so much with my Python assignment, everything you explained was super clear. Cheers mate

PhoenixOrion
Автор

I was unable to understand extended slice in my tutorial, this video made me understand, thanks Corey!

iancharlesmitchell
Автор

been taking a course at a university for the last 2 months and we are focusing entirely on python. This guy explains everything so well to the bone my mind is blown and my skills are getting better. thanks for your incredible content!

kareemali
Автор

Best slicing tutorial ever made. So simple and easy to follow

ifereokibe
Автор

I love you man! I'm doing my exams for computer sciences and I didn't understand this part. Now I'm all good

yourworstnightmare
Автор

Corey I thank you from five years later since you upload this video, your explanation is simple and yet your example is really thorough. I wish we will meet someday so I can thank you personally, god bless.

androidynamit
Автор

legend, simple, clear, precise, straight to the point, great video very helpful and very time saving thank you

craigcoates
Автор

You're the only youtuber who was able to explain this to where I could understand it. Thank you!

eliaswitt
Автор

Brilliant. Just brilliant. I am going to ask Youtube to put a LOVE button to be able to mark it clearly on each of your videos. Thank man for the good that you are doing to everybody, making things easier for us. Keep it up!

AMINE-yyzb
Автор

I tried 3 different sources to get the hang of it, and this actually made sense 100%. I really appreciate it, I'll be watching your videos instead.

elcoolerick
Автор

Thank you Corey for your time and effort. Keep spreading the knowledge.Always brings smile on face!

soumyazyx
Автор

Thanks Corey... slicing is very powerful when we know how and when to use it. I just knew from this video that we can use -1 in the step to return the list in reverse order.
I think you covered all the tricks we should know about slicing.

LuaiGhazali
Автор

thank you for this list slicing tutorial! very simple and easy to follow, completely explained what i was struggling with. thanks a lot!

smollstag
Автор

It's been a long time since I last saw a youtube video made so well it was worth mentioning. Well done

navotshiener