I am trying to create a script in Python 3 to pick and print a random joke when you type !joke. I have a list of jokes already, would it be better to hard code them in or create another file for it to grab them from? Any help would be greatly appreciated!
So far I've got this:
import random
if data.find('!joke') =-1
jokeNumber = randint(0,100)
Aucun commentaire:
Enregistrer un commentaire