Created
October 18, 2021 22:04
-
-
Save lwiecek/71c87361857e66459d550beff3746c7c to your computer and use it in GitHub Desktop.
Simple Scores Sum Tool
This file contains 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
# 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