• + 0 comments

    def reverse_array(): a = list(map(int, input("Enter numbers separated by spaces: ").split())) a_reversed = list(reversed(a)) return a_reversed