I think I overlook something very basic, as I am searching the web I don’t get a simple answer that I think will solve it. In the list sales, we need to strip the numbers of $ signs and set them equal to float. After stripping the number, I can’t figure out how to set them equal to float.
Line 14 in the exercise.
Now, consider the list
sales . It is a list of strings that we want to sum. In order for us to sum these values, we will have to remove the
$ , and set them equal to floats.
sales and for each item, strip off the
$ , set it equal to a float, and add it to