Skip to content

Commit 8e5e8e0

Browse files
committed
adding more parameters on logic input x
1 parent fdeee34 commit 8e5e8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magic8ball.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def magic8Ball():
1616
def tryAgain():
1717
print("Do you wanna ask any more questions? press Y for yes and any other key to exit ")
1818
x = input()
19-
if(x == 'Y'):
19+
if(x in ['Y', 'y'] ):
2020
magic8Ball()
2121
else:
2222
exit()

0 commit comments

Comments
 (0)