Enter the text for getting a random quote with the given string in the below text area.


Python fortune API

This service provides random quotes
  • Method: modules.Fortune.fortune
    • arg1 : database file name
    • arg2 : Search word(optional)
    • Return : Random quote
>>>print fortune.fortune('chanakya')
"Do not inhabit a country where you are not respected,
cannot earn your livelihood, have no friends, or cannot
acquire knowledge."
>>>print fortune.fortune('chanakya','charity')
"The good habits of charity, learning and austerity
practised during many past lives continue to be cultivated
in this birth by virtue of the link (yoga) of this present
life to the previous ones."