0
Split generator
Given a string as input, create a generator function that splits the string into separate words and outputs the resulting list.
4 Antworten
+ 4
Mihir Lalwani , Zocimo Orozco Valencia ,
the request is to use a generator function to solve this task...
+ 1
Txt = input()
def word(str):
return str.split()
print(word(Txt))
0
txt = input()
def words():
#your code goes here
return txt.split()
print(list(words()))
- 1
xgjtdshjtryjfhszdkdxfg