Does someone know the difference between these two and why? lambda doesn't not allow to reverse a single string?
Works fine with this
s = ['justdoit','asdf']
list(map(lambda s: s[::-1], s))
Doesn't apply the slicer. But why?
s = 'justdoit'
list(map(lambda s: s[::-1], s))