Categories
How to take data correctly?
I have a file with data of this type: data1:[email protected]:data4:data5 The question is, how do I get exactly data5?
Answer the question
In order to leave comments, you need to log in
'data1:[email protected]:data4:data5'.split(':')[-1]
*_, data5 = 'data1:[email protected]:data4:data5'.split(':')
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question