Created
September 7, 2022 20:43
-
-
Save alex-ber/6ce28c84a2430842d1252d1f4f33bb4c to your computer and use it in GitHub Desktop.
04_import4.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(__name__) | |
from simplemathexample.const import FIRST as first, SECOND as second | |
print('04_import4') | |
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.") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment