I have lists that contain multiple strings like:
['beth', 'Nissan', 'apple', 'three']
I am searching for a short and easy way (inline if possible) to get the sum of all individual strings in this list. This is the code I currently have:
sum = 0
for string in list_of_strings:
sum += len(string)