| Reply | « Previous Thread | Next Thread » |
|
Im looking for a help. How to learn string manupulation in pys60.
I want to: __variable = "hello world" LEFT(__variable, 2) ---> he RIGHT(__variable,2) ---> ld parametercount(__variable,' ') ---> 2 parametervalue(__variable,1,' ') ---> hello substring(__variable,7,5) --->world anybody can help? |
|
Quote:
Anyway, most of your questions can be answered with list (and string) splicing: Code:
1. __variable[:2] 2. __variable[-2:] 3. len(__variable.split()) 4. __variable.split()[0] 5. __variable[6:11] # Python counts from 0. |
|
Hi jethro! You again!
Its seems String handling in python is much more simplier than the VISUAL BASIC Im using. Thank you! a lot of thanks! |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| How to use Gauge/Process Bar when using HttpConnection? | Tanya | Mobile Java Networking & Messaging & Security | 2 | 2006-12-28 08:59 |
| Basic String Manipulation Problem | hong.lam | General Symbian C++ | 5 | 2006-11-07 11:51 |
| String manipulation in Symbian. | khurshed79 | General Symbian C++ | 3 | 2005-08-09 08:48 |
| Personal | JSmith77 | PersonalJava | 4 | 2003-07-30 13:52 |
| D211 new linux driver 1.04 not working !! | franz_meyer | Multimodecards | 1 | 2002-12-12 09:31 |