Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#This module was written primarily by Vinayak Sareen and edited slightly by Humza Shahid for GUI integration.
#To see Vinayak's original work, compare this file with the other Jokes.py in this repository. This Jokes.py contains Humza's changes.
import requests
def Joke_response():
Api_Url = 'http://api.icndb.com/jokes/random/20'
response = requests.get(Api_Url).json()
return response
def Joke_return():
Topfour = Joke_response()
return Topfour['value'][0]['joke']