Hi, anyone can help me to solve this:
How do I write a function in Python to get a list parameter (n) as input and then reverse all of the list items ?
for example :
input : {'n': [5, 143, 2678, 98, 1616, 666]}
output : [5, 341, 8762, 89, 6161, 666]
Thanks in advanced
How do I write a function in Python to get a list parameter (n) as input and then reverse all of the list items ?
for example :
input : {'n': [5, 143, 2678, 98, 1616, 666]}
output : [5, 341, 8762, 89, 6161, 666]
Thanks in advanced


Kalyani ShevaleRank #1,111 · 1.7K reputationPosted Sep 27, 2018, 10:28 PM EDT
Davood RiaziRank #3,446 · 420 reputationPosted Oct 3, 2018, 9:01 AM EDT