Nathan Pinno wrote: > I added the dictionary and loading and saving for the rates in my > exchange currency rates program, and when I ran it, I got the following > error: > > Traceback (most recent call last): > File "D:\Python24\exchange.py", line 84, in -toplevel- > save_rates(rates) > File "D:\Python24\exchange.py", line 9, in save_rates > store.write(rate + '\n') > TypeError: unsupported operand type(s) for +: 'float' and 'str'
Simon has explained the error. However you might want to look into the pickle module as a way to save your data. Kent _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
