my_number = 3 + 4j abs_value = abs(my_number) print(abs_value) #output #5.0
my_number = 7 abs_value = abs(my_number) print(abs_value) #output #7