►
Run
myList = [4, 1, -8, -6, 0] largest = max(myList, key=abs) print(f'Largest element in {myList} is {largest}.')
Output