Whats wrong with it?


#1


  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()


#2

@mrpon
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:


#3

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