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

Popular posts from this blog

New Ways of Conversing: The Kindle 2 and what I think it means

Huddled Masses Yearning: Teach the Controversy

Conversations Ongoing: A Bunch of Amateurs