split is not working
Asked by
koventhan
I want to split my line and get the eCCM-U for mt,
i am using below code for it, please let me know if any issue with my code?
line="ModuleName : PBA: eCCM-U"
print line.split()
(head, mt) = line.split(
print mt
getting below error,
['ModuleName', ':', 'PBA:', 'eCCM-U']
[error] Stopped
[error] An error occurs at line 6
[error] Error message: Traceback (most recent call last):
File "C:\DOCUME~
(head, mt) = line.split(
ValueError: need more than 1 value to unpack
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask koventhan for more information if necessary.
To post a message you must log in.