Python 3.4 - Slicing Strings
user = "Buff McLargeHuge" print(user[5])
You can access various parts of a string (slice) and do things with them by using square brackets [].
There's a lot you can do:
https://www.pythoncentral.io/cutting-and-slicing-strings-in-python/
Above I am printing the letter 'M' out.
https://www.youtube.com/watch?v=YbipxqSKx-E
Comments