Replaced import of random with just import of random.choice
Replaced import of json with just import of json.load
Removed the parameter for home function since it served no purpose (afaik)
Replaced the length variable with len function since it is O(1) in Python
Check the entirety of joke in search_joke function
Replaced import of random with just import of random.choice Replaced import of json with just import of json.load Removed the parameter for home function since it served no purpose (afaik) Replaced the length variable with len function since it is O(1) in Python Check the entirety of joke in search_joke function