Profile
Achievement
![first submission:submitting first snipplet first submission:submitting first snipplet](/img/badge/badge_2.png?v3)
denisemauldin's Recent Snippets
- All /
« Prev 1 Next »
arr[::-1] does a list slice to reverse the array
str(x) for x in arr[::-1] casts the ints in the array as strings
map(str, arr[::-1]) does the same thing by using map to cast the ints
" ".join() joins the resulting strings with a space
1
1006
posted 8 years ago by denisemauldin