0

Can you explain this to me?

https://code.sololearn.com/ccjpJ23SB12c/?ref=app It keeps on printing the list's address

6th Jun 2020, 3:05 PM
Purple Requiem
Purple Requiem - avatar
3 Respostas
+ 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
6th Jun 2020, 4:00 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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.
6th Jun 2020, 3:12 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
I want to reverse each *individual* list object
6th Jun 2020, 3:17 PM
Purple Requiem
Purple Requiem - avatar