Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions debugging/pdb_ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
print("To exit this game type 'exit'")
num1 = choice(random2)
num2 = choice(random1)
answer = int(input("What is {} times {}? ".format(num1, num2)))
answer = input("What is {} times {}? ".format(num1, num2))

# exit
if answer == "exit":
print("Now exiting game!")
sys.exit()

# determine if number is correct
elif answer == num1 * num2:
elif int(answer) == num1 * num2:
print("Correct!")
break
else:
Expand Down