K
K
K1NDER2021-07-04 11:46:47
Python
K1NDER, 2021-07-04 11:46:47

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

2 answer(s)
S
soremix, 2021-07-04
@K1NDER

'data1:[email protected]:data4:data5'.split(':')[-1]

A
Alexey, 2021-07-04
@AlekseyZz

*_, data5 = 'data1:[email protected]:data4:data5'.split(':')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question