Skip to content

TypeScript code snippet – How to get absolute value of elements of list in python?

myList = [2,3,-3,-2]
myList = list(map(abs,myList))
See also  Python code snippet - How to get checkbutton from a list?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.