M
M
Master Ruby2021-08-20 13:49:55
Python
Master Ruby, 2021-08-20 13:49:55

How to get the value of a variable?

tournament = [(name.text for name in data.find_all('span', 'events-app__header__name')) for data in body]
print(tournament)

At the output I get a generator, I need to get the value.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2021-08-20
@Dunaevlad

tournament = [name.text for data in body
              for name in data.find_all('span', 'events-app__header__name')]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question