python. How can I write a function that takes a list of spaces as input : Hi because I'm a beginner in python I have some questions. How can I write a function that takes a list of spaces as input and returns the sum of the lengths of the spaces.