Modules in Python
Two numbers are given:
num1 = -8
num2 = -2
Get the sum of their modules.
The lists are given:
lst1 = [-3, 4, -1, 6]
lst2 = []
Write the code to get the following result:
lst2 = [3, 4, 1, 6]
Two numbers are given:
num1 = -8
num2 = -2
Get the sum of their modules.
The lists are given:
lst1 = [-3, 4, -1, 6]
lst2 = []
Write the code to get the following result:
lst2 = [3, 4, 1, 6]