Sunday, 15 September 2013

Adding all the numbers from a list together(not summing). Python 3.3.2

Adding all the numbers from a list together(not summing). Python 3.3.2

say that I have this list:
alist = [2, 0, 1]
How would I make a string named "hahaha" for example equal to 201 ? Not 5
(sum). Would I need to something like "
for number in alist .....
thanks !

No comments:

Post a Comment