The sprit of this newsgroup!

Martijn Faassen m.faassen at vet.uu.nl
Fri Feb 21 19:17:59 EST 2003


Alex Martelli <aleax at aleax.it> wrote:
> Martijn Faassen wrote:
>    ...
>> I have a problem with my phython. I am trying to change my string using:
>> 
>> mystring[10] = 'f'
> 
> Ah, this is the problem!  Python is case-sensitive, so you
> need to use 'F' instead.

ok I tried 'F' but it still don't work:

mystring[10] = 'F'

said something about a typing error and some assignment they wanted to
give me, was that this PSU thing you all talk about? They are giving me
assignments already...

but i figured it out all by myself and soon I can be a senior too:

mystring = 'Hello world how are you?"
mystring = range(217)
mystring[10] = 'F' 

works!!

but now i have a problem printing my string, I get it looking all weird like
a lot of numbers and stuff. What is happening?

Martijn "Almost Senior" Faassen
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?




More information about the Python-list mailing list