đ Beginning Python Programming
/
List & Collection
/
Code Example: Random Quote
Quotes Example v2
from random import choice
quotes = (
"I want to put a ding in the universe.âSteve Jobs",
"Life is 10% what happens to you and 90% how you react to it.âCharles R. Swindoll",
"Family is not an important thing. It's everything.âMichael J. Fox",
"Nothing is impossible, the word itself says 'I'm possible'!âAudrey Hepburn",
"There are two ways of spreading light: to be the candle or the mirror that reflects it.âEdith Wharton",
"Try to be a rainbow in someone's cloud.âMaya Angelou",
"Be brave enough to live life creatively. The creative place where no one else has ever been.âAlan Alda",
"The secret of getting ahead is getting started.âMark Twain",
)
quote = choice(quotes).split("â")
print(f'â{quote[0]}â â {quote[1]}')