On line 3, create the variable my_string and set it to any string you'd like. On line 4, print the length of my_string. On line 5, print the .upper() case version of my_string


#1



Replace this line with your code.


#2

Please post your code, error message, and link to the exercise. We aren't telepathic.


#3

Please give the code or link or something else about what your problem is. However, I found out your exercise. This is a very easy concept and I don't know why you have got a problem with that.

Create a variable named my_string and set it to whatever you like: eg:- Apple

To find the length of your string use the len method and print it out using the print statement to print it.

To make your string completely in the upper case, use the .upper() method and use the print statement to print it out.

So, the whole code will be like:

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

#4

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