my mind,from:
>>>text='hi how are you'
>>>example=text.split()
>>>print(example[0:4:2])
it would print a list
['hi', 'are']
my question, how to convert them? from list like above, to:
>>>
hi are
if you got it, please answer.
my mind,from:
>>>text='hi how are you'
>>>example=text.split()
>>>print(example[0:4:2])
it would print a list
['hi', 'are']
my question, how to convert them? from list like above, to:
>>>
hi are
if you got it, please answer.
text='hi how are you'
example=text.split()
print(' '.join(example[0:4:2]))