Re: [Tutor] Changing a string number to another number [RESOLVED]

2015-04-15 Thread Ken G.
On 04/15/2015 09:09 AM, Steven D'Aprano wrote: On Wed, Apr 15, 2015 at 08:21:33AM -0400, Ken G. wrote: When running the following code, I get the following error code: 201504110102030405061 Traceback (most recent call last): File "Mega_Millions_Tickets_Change.py", line 11, in datecod

Re: [Tutor] Changing a string number to another number [RESOLVED]

2015-04-15 Thread Ken G.
On 04/15/2015 08:50 AM, Peter Otten wrote: Ken G. wrote: When running the following code, I get the following error code: 201504110102030405061 Traceback (most recent call last): File "Mega_Millions_Tickets_Change.py", line 11, in datecode[20:21] = "0" TypeError: 'str' object does

Re: [Tutor] Changing a string number to another number [RESOLVED]

2015-04-15 Thread Ken G.
On 04/15/2015 08:36 AM, Dave Angel wrote: On 04/15/2015 08:21 AM, Ken G. wrote: When running the following code, I get the following error code: 201504110102030405061 Traceback (most recent call last): File "Mega_Millions_Tickets_Change.py", line 11, in datecode[20:21] = "0" TypeErro