Jun-16-2019, 07:01 PM
Hello Everyone,
I started learning Python not too long ago, but unfortunatley I ran into some trouble with using a String Method.
This is my code:
Greetings Indra
I started learning Python not too long ago, but unfortunatley I ran into some trouble with using a String Method.
This is my code:
1 2 3 4 5 |
famous_person = 'bruce lee' message = 'famous_person.title()' + 'once said,' + '"the more we value things, the less we value ourselves."' print (message) |
Error:famous_person.title() once said, "the more we value things, the less we value ourselves."'
famous_person.title() doesn't change to the value I gave it. (bruce lee.) What am I doing wrong?Greetings Indra