Indexing and Slicing with Strings in Python
Strings are an ordered collection of letters, numbers and symbols which we can actually access each of these by their position(indexing) in a string. We can access a group of letters by slicing. In this tutorial, we will cover indexing and slicing a string in Python as one since they go hand in hand in Python.
#indexing #slicing #reverseindexing, #python.
Indexing in Python
Indexing provides each character contained in a string an identity so we can access that character or characters via slicing. The index always starts at the number 0 and counts up till the end of the string. Each character, space, symbol, and the number is automatically assigned an index number.
Remember to Subscribe to My Channel..
♥ Support ME on Patreon: @internetseekho
♥ Get all the assets and code from Github @internetseekho
♥ Our Social Media Accounts
-----------------------------------------------------------
● Facebook: @web.internetseekho
● Twitter: @internetsekho
● Instagram: @internetseeckho
● Tumbler: @internetseekho-com
● Pinterest: @internetseekho
● GitHub: @internetseekho
● Discord: @internetseekho
-----------------------------------------------------------------
♥ Tips:
1. Follow along as I explain to make sure you understand everything
2. Ideally, work with a friend so you can help each other when you’re stuck
3. If you want to learn faster than I talk, I’d recommend 1.25x or 1.5x speed :)
4. Check the outline in the comment section below if you want to skip around.
5. Have fun! If anything is unclear, please let me know in a comment.
♥ Some Useful Links
• Video
• inverted index
• 18 3 The Inverted Index Stanford NLP P...