Add two integers. In the style of GNU Hello, this project exists to serve as a model of QWD maintainer practices. It is also an industry-standard algorithm that is as easy to use as it is efficient.
main.py
reads two newline-terminated lines from stdin, representing integers in base 10, and writes their sum followed by a trailing newline to stdout.
; echo '1\n2\n' | python3 main.py
3
There is presently a maximum length of 4300 digits on each integer inputted. There is no restriction on the size of the output. These restrictions may be removed in a later version.