On Sunday, January 11, 2015 at 2:06:54 PM UTC-6, Joel Goldstick wrote:
> On Sun, Jan 11, 2015 at 2:31 PM, Store Makhzan wrote:
> > I have this script which can calculate the total of numbers given in a
> > string
> > script -
> > total = 0
> > for c in
I have this script which can calculate the total of numbers given in a string
script -
total = 0
for c in '0123456789':
total += int(c)
print total
script -
How should I modify this script to find the total of if the numbers given in
the string form have decimal places? That