You are viewing a single comment's thread. Return to all comments →
def reverse_array(): a = list(map(int, input("Enter numbers separated by spaces: ").split())) a_reversed = list(reversed(a)) return a_reversed
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
def reverse_array(): a = list(map(int, input("Enter numbers separated by spaces: ").split())) a_reversed = list(reversed(a)) return a_reversed