Skip to content

Instantly share code, notes, and snippets.

@lwiecek
Created October 18, 2021 22:04
Show Gist options
  • Save lwiecek/71c87361857e66459d550beff3746c7c to your computer and use it in GitHub Desktop.
Save lwiecek/71c87361857e66459d550beff3746c7c to your computer and use it in GitHub Desktop.
Simple Scores Sum Tool
# Super simple data entry: just type the numers joined together and hit enter
# Ctrl-C to exit.
# Caveat: only works with each 0 <= score < 10.
# Copy the follwoing line to Python 3 and hit enter twice
while True: print(f'sum: {sum(int(a) for a in input("scores: "))}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment