I\'m supposed to create a function, which input is a list and two numbers, the function reverses the sublist which its place is indicated by the two numbers. for example this is
Not sure if you have a similar problem as mine, but i needed to reverse a list in place.
The only piece I was missing was [:]
exStr = "String" def change(var): var[:] = var[::-1] # This line here print(exStr) #"String" change(exStr) print(exStr) #"gnirtS"