Skip to content

Instantly share code, notes, and snippets.

@syedjafer
Created April 28, 2021 10:25
Show Gist options
  • Save syedjafer/25dd38a8741e22e203a3133e5fd2c073 to your computer and use it in GitHub Desktop.
Save syedjafer/25dd38a8741e22e203a3133e5fd2c073 to your computer and use it in GitHub Desktop.
nums = input().split(",")
total_elem = len(nums)
output_nums = list()
while total_elem:
ouput_nums.append(nums[total_elem-1])
total_elem -= 1
print(output_nums)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment