Created
April 28, 2021 10:25
-
-
Save syedjafer/25dd38a8741e22e203a3133e5fd2c073 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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