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

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs