We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e9519 commit e6ff3daCopy full SHA for e6ff3da
joke.py
@@ -7,4 +7,4 @@ def getJoke():
7
# return a random joke loaded from the data.json
8
with open('data.json') as data_file:
9
data = json.load(data_file)
10
- return data[randint(1, len(data))]
+ return data[randint(0, len(data))]
0 commit comments