Skip to content

Commit

Permalink
Add lecture of Friday, November 24
Browse files Browse the repository at this point in the history
  • Loading branch information
squillero committed Nov 24, 2023
1 parent a58f761 commit 99e634c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Python/src/2023-24/20231124 read.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright © 2023 Giovanni Squillero <[email protected]>
# https://github.com/squillero/computer-sciences
# Free for personal or classroom use; see 'LICENSE.md' for details.


def read_integer_sequence():
sequence = list()
word = None
while word != "":
word = input()
try:
sequence.append(int(word))
except ValueError:
pass
return sequence


def main():
print(read_integer_sequence())


if __name__ == "__main__":
main()

0 comments on commit 99e634c

Please sign in to comment.