Skip to content

Instantly share code, notes, and snippets.

@alex-ber
Last active September 7, 2022 19:29
Show Gist options
  • Save alex-ber/da9030e82be92a52952b0ab05939fb10 to your computer and use it in GitHub Desktop.
Save alex-ber/da9030e82be92a52952b0ab05939fb10 to your computer and use it in GitHub Desktop.
06_variables6.py
first=2
second=3
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