Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Method not regocnized
#1
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:

 

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
Reply


Messages In This Thread
Method not regocnized - by Lass86 - Jun-16-2019, 07:01 PM
RE: Method not regocnized - by metulburr - Jun-16-2019, 07:17 PM
RE: Method not regocnized - by perfringo - Jun-16-2019, 09:02 PM
RE: Method not regocnized - by Lass86 - Jun-19-2019, 09:03 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020