Skip to content

Instantly share code, notes, and snippets.

@andriiburka
Last active June 4, 2020 21:24
Show Gist options
  • Save andriiburka/f6a6d76b857a4a97913db838ff60984d to your computer and use it in GitHub Desktop.
Save andriiburka/f6a6d76b857a4a97913db838ff60984d to your computer and use it in GitHub Desktop.
# int output 75/100
reversed_li = "".join(list(input().split('|')[::-1])).replace(' ', '')
print(*[int(i) for i in reversed_li])
# Преработено с помоща на Дилиана Джо
user_input = reversed(input().split("|"))
matrix = [li.split() for li in user_input]
print(" ".join(num for li in matrix for num in li))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment