Advertisement
aneliabogeva

Append Lists

Jun 17th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. token = [str(item) for item in input().split("|")]
  2. nums = []
  3.  
  4. for item in reversed(token):
  5. nums += item.split(" ")
  6. for num in nums:
  7. if num != '':
  8. print(num, end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement