And Now, For Something Completely Familiar


#1

my_string="dragon"
print len("my_string)
print "my_string".upper()
can someone fix my code


#2

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

actually this is my code but it still doesnt work when i click submit


#3

why are you adding " quote ??
wee can't use "" to print variable , if wee do it will be just message ( string )
so remove it from all variable


#4

Write your code below, starting on line 3!

It is my code
My_string = "Leopold"
print len(My_string)
print My_string .upper()
What am I doing wrong? Thanks

Oops, try again. Did you create a variable called my_string?


#5

I don't know why this happened you should have it right. Change the my_string to "Narnia" this worked for me


#6

it's because he defined My_string, not my_string...


#7

Oh I just took his code and changed the my_string to "Narnia". Hey, have you finished python


#8

I know, I was just saying. & yes I have.


#9

you have space before .upper()
The whole code should like the following
my_string = "ramayan"
print my_string.upper()
print len(my_string)