In this beginner lesson, we learn about sequences in Python. Sequences are the foundation of more complex data structures in Python, such as lists and tuples.
Previously, we introduced the strings as a basic type. In this video, we'll revisit that and introduce it as a compound data type instead. It's a SEQUENCE of characters!
Using strings as an example, I'll demonstrate the properties of sequences in Python: indexing, slicing, and iterating! These will be applicable to other sequences (lists, tuples, etc) later on.
Timestamps:
00:00 Intro and Recap
00:50 Indexing
04:14 Slicing
07:34 Iteration
11:11 Code Demonstration
Notes: https://github.com/kying18/intro-to-p...
Join the discord to learn Python with a community! / discord
I use replit.com as the code editor. If you have Python and your own editor set up on your computer feel free to use it!
Feel free to leave any questions.
Please consider subscribing if you liked this video: https://www.youtube.com/c/ycubed?sub_...
Thanks for watching everyone!
~~~~~~~~~~~~~~~~~~~~~~~~
Follow me on Instagram: / kylieyying
Follow me on Twitter: / kylieyying
Check out my website: https://www.kylieying.com
Watch video Sequences: Indexing, Slicing, and Iterating | Python for Beginners Lesson 3 | Code with Kylie online without registration, duration hours minute second in high quality. This video was added by user Kylie Ying 14 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,783 once and liked it 279 people.