Update playing_with_strings.py

This commit is contained in:
marina 2023-08-07 17:35:27 -07:00 committed by GitHub
parent a37d96b756
commit e54535ae2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,13 +3,4 @@
# author: bt3gl
def reverse_array_in_place(array):
""" Reverse an array in place """
return array[::-1]
if __name__ == '__main__':
print('Testing reverse_array_in_place')
array = [1, 2, 3, 4, 5]
print(f'Array: {array}')
print(f'Reversed: {reverse_array_in_place(array)}')