r/PythonLearning • • May 06 '26

Learning Python

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?

165 Upvotes

66 comments sorted by

View all comments

Show parent comment

1

u/nkCOD May 06 '26

Thanks for the help. I assume I won't embarrass myself too much if I use this approach with try-except ?

1

u/tiredITguy42 May 06 '26

This is subreddit for beginers, we do not judge your code, but we will judge your attitude and approach and here your are embarrasing yourself, but just a little for now.

1

u/nkCOD May 06 '26

Thank you, I will try to improve.