Skip to content

Instantly share code, notes, and snippets.

@filletofish
Created December 21, 2016 13:09
Show Gist options
  • Save filletofish/d0acc60d5214a30059dc42dec1f16d8d to your computer and use it in GitHub Desktop.
Save filletofish/d0acc60d5214a30059dc42dec1f16d8d to your computer and use it in GitHub Desktop.
user_inp = input("Введите числа через пробелы: ")
user_list = user_inp.split()
res = []
i = len(user_list) - 1
while i >= 0:
res.append(user_list[i])
i -= 1
print(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment