How to get length of string in Python? Subash Chandran 14th October 2021 Leave a Comment string = "test" print(len(string)) #>>> Output "4" Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email this to a friend (Opens in new window) Related See also TypeScript code snippet - How to take two inputs in a single line in python? Snippets How to get length of string in Python? Change font size A Decrease font size. A Reset font size. A Increase font size.