You can get the length of a string in Python using the len() function. The len() function takes a string as an argument and returns the number of characters.