Mar-06-2017, 01:03 AM
(This post was last modified: Mar-06-2017, 01:03 AM by sparkz_alot.)
(Mar-06-2017, 12:30 AM)Larz60+ Wrote:L = [2, 4, 6, 8] print(sum(L)) L = []
Why are you setting 'L' to an empty list?
Edit:
Never mind, I see that is what the OP ends up with, though I'm not sure why he would want that.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition