16. and now for something completely familiar



I am having trouble closing out the exercise. The print statements are giving me a real head ache.

my_string = 'alpha ' + ' bravo ' + 'charlie'

I am getting a syntax error. Anyone know how to fix it.

Replace this line with your code.


i would take a look at the string methods:


len() never uses a full stop, and .upper() is a method so it should be after the string (or variable containing a string)


I finally got it. Thank you.

my_string = 'This is my string'
print len(my_string)
print my_string.upper()


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