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
tablespace
Expand/Collapse Single SubForm Record; how to?
Need collection with computers needing Java update
Need some clarification on ESX vs. ESXi vSphere versions
100% wide html image banner
How to use a Unit
Find first space in a cell and show all that is on the left of it
Policy-based routing using port numbers? Is it possible?
Kerberos authentication 'sometimes' not working - XP related problem(?)
What's the best (free) logging framework for C++?