Skip to content

Commit 87e9519

Browse files
committed
change method name to camelCase so app works again. remove excess lines
1 parent ea67071 commit 87e9519

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

joke.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
from random import randint
44

55

6-
def get_joke():
7-
# Return random joke
6+
def getJoke():
7+
# return a random joke loaded from the data.json
88
with open('data.json') as data_file:
99
data = json.load(data_file)
10-
joke = data[randint(1, len(data))]
11-
return joke
10+
return data[randint(1, len(data))]

0 commit comments

Comments
 (0)