Microsoft
Software
Hardware
Network
Question : split string
Hi,
Please provide shortest solution, no loops.
I have a list with specified positions where I want to cut a string. How can I convert the string to a list?
E.g.
stringexample = samwants2go2nyc'
positions = [3,8]
the required output would be:
['sam','wants','2go2nyc']
Thanks a lot python wizards!
Answer : split string
Notice that the positions can be any sequence of numbers -- here also a tuple.
Random Solutions
html text editor deleting tag info
no display while booting Linux live cds for HP EliteBook 8440p
SQL Query using SQL Plus in Oracle 10g
Users can't reconnect to RemoteApp Session
Java app logs cpu expensive
Cannot send internal email to certain recipients - Exchange 2010
Filling a dataset without locking the database?
Computer will boot part of the way then stop and cannot reboot
Converting Access 2003 to 2007 for Programmers
how to set up a countdown timer using an animated GIF?