Skip to content

Commit

Permalink
reducing complexity for even game
Browse files Browse the repository at this point in the history
Signed-off-by: hikarikumo <[email protected]>
  • Loading branch information
hikarikumo committed Dec 17, 2023
1 parent de5821e commit 5421e87
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions brain_games/even_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ def even_wrong_answer(correct_answer):
print(f"'{correct_answer}' is wrong answer ;(. Correct answer was '{'no' if correct_answer == 'yes' else 'yes'}.")

def even_game():
"""
Verify the correct answer.
Test what does the user type in: yes or not.
Other characters are not allowed.
Verify the correct answer provided by user.
Returns:
True ot False according to the provided answer by user.
"""
random_number = random.randint(0, 1000)
even_result = check_if_even(random_number)
print(random_number)
Expand Down

0 comments on commit 5421e87

Please sign in to comment.