Im stuck! Pls help! - Solved


#1



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

Traceback (most recent call last):
File "python", line 3, in
NameError: name 'egg' is not defined

Oops, try again. Did you remember to make my_string a string?


I expected it to say that is's correct and for me to then be able to continue


# Write your code below, starting on line 3!

my_string = egg
print len(my_string)
print my_string.upper()


#2

egg is string value so should be inside " "

my_string = "egg"


#3

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