Strings and Console Output 16/16 Help Please


#1



Hi there I'm stuck on Strings & Console Output. I tried looking at other posts but I none of them helped.

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


Oops, try again. Did you remember to print len(my_string)?


I thought it would be right, it prints the right things but it comes up with error messages. When I tried putting in "lens" it printed a 5??


my_string = "Hello"
print len("my_string")
print "my_string".upper()


#2

Writing a variable in quotes turns the name into a plain string. Remove the quotes from this and the next line.


#3

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