I'm new to python, I would like to read a column of values from a csv file and add them together, but only those to the left of the "," My csv File:
Name Code
Angel 19;90
Eduardo 20;21
Miguel 30;45
I would like to be able to sum only the numbers to the left of the "Code" column, so that my output is "19+20+30 = 69". I tried deleting the ";" and converting the string to int but sums but joins the numbers together and I have this output:
Your final sum is : 1990 +2021 +3045 = 7056
69? Or7056?