While working on a program that creates bars out of sets of numbers in a list, I found that adding up items in my list doesn't work. I thought the best way to do this is just to make a for loop.
Here's my list:
phonelist = [[12,14,16,17,18],[16,23,54,64,32]]
And then I try to add this up with a for loop
numphone = 0
for x in len(phonelist[0]):
numphone = numphone + x
Yet I get this error:
TypeError: 'int' object is not iterable
What should I do?