Thread
:
Need help with python string trim
View Single Post
khuong
2011-04-02 , 16:30
Posts: 291 | Thanked: 398 times | Joined on Jan 2011 @ USA
#
1
Hi,
I am noob in python, I need help with the syntax to trimp the string with python.
str = '187790012345'
strlen = 4
newstr = ?
I like the newstr to return only first strlen of str.... like '1877'
How do i do that in an effective way? Thanks.
Quote & Reply
|
khuong
View Public Profile
Send a private message to khuong
Find all posts by khuong