0
Can you explain this to me?
https://code.sololearn.com/ccjpJ23SB12c/?ref=app It keeps on printing the list's address
6 Antworten
+ 3
If you want to reverse every item, you did it *almost* well :)
Just remember that map returns a map object. So in order to receive a list, you have to convert it to one.
And please rename the variables so they do not overwrite types and method names.
https://code.sololearn.com/cH84a0H5Nn6J/?ref=app
+ 2
It is enough to just use reverse(list), no map() required.
By the way:
Please do not name the variables as keywords or type names. It will quickly make your code not working.
+ 1
I want to reverse each *individual* list object