p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Strings I
Exercise: Get length of string
Exercise: Get length of string
Use the len function to count the number of characters.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output