Data Types · Lesson 30 of 76
Working with strings
Strings come with handy built-in tools (called methods). A few you'll use constantly:
Python
You can also grab parts of a string by position (slicing), counting from 0:
Python
Your turn: take " Hello World ", strip the spaces, and print it in upper case.
You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →