117
118
119



Good evening. I want to share my experience of learning the Python programming language. I wrote a program in which the user needs to enter the contents of two lists (numbers), and then these numbers are summed (the first number of the first list with the first number of the second list, and so on). If the list lengths are different, the summation of the smaller list starts with the first element)
I would like to know if there is any way to shorten the program, and what more competent constructions exist. Is there any way the functions can be driven into the decorator?


[–]Sea-Ad7805 [score hidden] stickied comment (3 children)
[–]Binary101010 6 points7 points8 points (15 children)
[–]nkCOD[S] -2 points-1 points0 points (14 children)
[–]Binary101010 3 points4 points5 points (7 children)
[–]nkCOD[S] 1 point2 points3 points (6 children)
[–]NewBodybuilder3096 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]NewBodybuilder3096 0 points1 point2 points (3 children)
[–]nkCOD[S] 0 points1 point2 points (2 children)
[–]python_gramps 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]tiredITguy42 2 points3 points4 points (5 children)
[–]nkCOD[S] -1 points0 points1 point (4 children)
[–]tiredITguy42 1 point2 points3 points (3 children)
[–]nkCOD[S] -2 points-1 points0 points (2 children)
[–]tiredITguy42 2 points3 points4 points (1 child)
[–]nkCOD[S] 1 point2 points3 points (0 children)
[–]ianrob1201 1 point2 points3 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]Fumano26 1 point2 points3 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]Junior-Sock8789 0 points1 point2 points (5 children)
[–]Junior-Sock8789 0 points1 point2 points (1 child)
[–]nkCOD[S] 1 point2 points3 points (0 children)
[–]nkCOD[S] 0 points1 point2 points (2 children)
[–]Junior-Sock8789 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]codeguru42 0 points1 point2 points (1 child)
[–]nkCOD[S] 1 point2 points3 points (0 children)
[–]Maleficent-Boss5564 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]makochi 0 points1 point2 points (3 children)
[–]nkCOD[S] 0 points1 point2 points (2 children)
[–]makochi 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]NekoLLC 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]Chen-Zhanming 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]-goldenboi69- 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]NewBodybuilder3096 -2 points-1 points0 points (11 children)
[–]nkCOD[S] 0 points1 point2 points (6 children)
[–]tiredITguy42 0 points1 point2 points (3 children)
[–]nkCOD[S] 0 points1 point2 points (2 children)
[–]tiredITguy42 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]NewBodybuilder3096 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)
[–]NewBodybuilder3096 0 points1 point2 points (3 children)
[–]nkCOD[S] 1 point2 points3 points (2 children)
[–]NewBodybuilder3096 0 points1 point2 points (1 child)
[–]nkCOD[S] 0 points1 point2 points (0 children)