-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjokes_feature.py
20 lines (16 loc) · 1.08 KB
/
jokes_feature.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import random
import pyjokes
jokes = ["I threw a boomerang a few years ago.\n I now live in constant fear",
"You don't need a prachute to go skydiving.\n You need a parachute to go skydiving twice",
"My Grandfather has a heart of a lion\n And a lifetime ban at the the zoo",
"Women only call me ugly until they find out how much money I make.\nThen they call me ugly and poor.",
"You are never completely useless,\n you can always serve as a bad example.",
"A Roman walks into a bar, sticks two fingers up to the barman and says, Five beers please.",
"What's the difference between a well dressed man on a bicycle, and a poorly dressed man on a tricycle?,\nAttire!",
"I invented a new word,\n plagiarism",
"Helvetica and Times New Roman walk into a bar...\n'Get out of here!' shouts the bartender. 'We don't serve your type.'",
"Did you hear about the new restaurant called 'Karma?'\nThere’s no menu you get what you deserve.",
pyjokes.get_joke()]
def joke_choice():
joke = random.choice(jokes)
return joke