コード例 #1
0
from read import Read

sentence = Read(str, 'Sentence')

words = sentence.split()  #spliting string into list on blank spaces
words.reverse()  #reversing lists

print(' '.join(words))  #joining list items with blank spaces
コード例 #2
0
from read import Read

string = Read(str)

for i in string.split():
    if len(i) % 2 == 0:
        print(i)