And now for something completely familiar


#1



https://www.codecademy.com/en/courses/python-beginner-sRXwR/4/1?curriculum_id=4f89dab3d788890003000096#


Oops, try again. It looks like nothing was printed to the console!


I press save and submit but it still has this error message.


Replace this line with your code. 
# Write your code below, starting on line 3!

my_string = "cat"
len(my_string)
my_string.upper()


#2

len(string) and string.upper() functions returns the number of characters in string and uppercased string correspondingly (in this case).
It does not automatically prints them.

You need to use print function to print them.

for ex..

x = "I'm a string"

print len(x)

#3

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