| View previous topic :: View next topic |
| Author |
Message |
Dr.Robotnik Pilgrim

Joined: 13 Jun 2010 Posts: 13
|
Posted: Tue Dec 07, 2010 8:49 am Post subject: Python Syntax |
|
|
I'm new to python and I have a simple syntax question. It is so simple I don't even know what to type into google. Here is what I'm trying to do in c++...
| Code: | char array[] = "hello";
array[3] = 'z'; |
how would I do this in python?
I tried this
| Code: | string = "hello"
string[3] = 'z' |
but it doesn't work.
also i'm using python24 |
|
| Back to top |
|
 |
evasive Mobo-fu Master


Joined: 06 May 2001 Posts: 36479 Location: Netherlands, Breda
|
|
| Back to top |
|
 |
Dr.Robotnik Pilgrim

Joined: 13 Jun 2010 Posts: 13
|
Posted: Thu Dec 09, 2010 9:17 am Post subject: |
|
|
Thanks a lot.
That is so weird, you have to create a new string. I don't like python24, i am taking a programming course half in python half in java, I can't wait to get to java... At least now i can make the library work off a flash drive though. |
|
| Back to top |
|
 |
|