Whats wrong with it?


  1. And Now, For Something Completely Familiar

Traceback (most recent call last):
File "python", line 4, in
AttributeError: 'str' object has no attribute 'len'

# Write your code below, starting on line 3!

my_string = "Hi i am pon"
print my_string.len
print my_string.upper()


Your code says print my_string.len. The length operator is correctly written as .len() to describe it as a function. Add the parenthesis and you will be golden. Hope this helps. :snake:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.