R
R
resresres2021-07-28 14:26:01
Python
resresres, 2021-07-28 14:26:01

How to select text from a string in pythone?

Good laziness, the task is idle, but for some reason I did not find the answer

token = '''Initial Liquidity: $19,037

Token contract:
0x61931565ee2bfdcebefwef0154a7f5afe26a5bd'''

from this text I want to select the last line with tokens, but I didn't find how. thanks for the help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ramis, 2021-07-28
@resresres

token = '''Initial Liquidity: $19,037

Token contract:
0x61931565ee2bfdcebefwef0154a7f5afe26a5bd'''

print(token.split('\n')[3])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question