master
py
.com
Nav menu
home
Home
article
Browse Lessons
picture_as_pdf
EBOOK
star
PREMIUM
email
Contact
FREE INTERACTIVE ONLINE COURSE
Python 3
FOR
BEGINNERS
Supported by
Union of Computer Science Teachers from Romania
LESSONS
CLUB
ACCOUNT
"
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
1
2
3
4
5
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
get_app
double_arrow
Execute
hourglass_top
Execute
clear
cached
undo
redo
Console/Output
done
error_outline
clear
Mind the syntax!
Run the program then proceed
to the next page.
1
2
3
4
5
info_outline
clear
Create a new account to get the free Membership Certificate
home
list
CONTENTS
perm_identity
arrow_upward