Skip to content

Instantly share code, notes, and snippets.

@alex-ber
Created September 7, 2022 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-ber/3c94e1b065b723a880cf7d6914bceada to your computer and use it in GitHub Desktop.
Save alex-ber/3c94e1b065b723a880cf7d6914bceada to your computer and use it in GitHub Desktop.
05_import5.py
from simplemathexample.const import *
from simplemathexample.const import _random
first=FIRST
second=SECOND
result=first+second
answer_str = input(f"How much is {first} + {second} ? ")
answer = int(answer_str)
if result==answer:
print("You're right!")
else:
print("Sorry, you're wrong.")
print(f"If you insist {_random.randint(1, 1)} ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment