Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created Jul 21, 2020
Embed
What would you like to do?
l=[-2,-1,0,3,4]
l3=[str(abs(i)) for i in l]
print (l3)#Output:['2', '1', '0', '3', '4']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment