2013-06-14 21:33:09 +0100 | received badge | ● Editor (source) |
2013-06-14 21:29:29 +0100 | asked a question | How do I multiply items within a CSV Hi, I am trying to import a CSV file then find the product of all of the numbers within the file. The code I have used so far is: However, this doesn't work, I receive the following error "TypeError: cannot perform reduce with flexible type". I think this is because of the format of how the mylist is created. This list data comes out in this format: How do I coerce it into the format (1,2,3)? |