FREE INTERACTIVE ONLINE COURSE

Python 3

FOR BEGINNERS


"The first Python course that simply amazed me. Very well explained and easy to understand." (Alexandru Cosmin)

"The best Python course in Romania." (Iulian Geană)


ALL REVIEWS
LESSON 8
PAG. 4 / 5
Strings
Home >>> Free Online Lessons, Python 3

String Length

To obtain the length of a string, we will use the function len(variable_name).

We note again that indexes start at 0 and stop at len()-1.

EXAMPLE
Editor - lesson_8_strings.py
       
Console/Output done
Run the program then proceed to the next page.
 home   list  CONTENTS   perm_identity   arrow_upward