I'm studying how to make a Python function algorithm again. It's really not easy.
Below is the coding that I redefined the ABS function.
def my_abs(number):
if number < 0:
number * -1
elif number > 0:
number * 1
test1 = 1.7
test2 = -8
a=my_abs(test1)
b=my_abs(test2)
print(a,b)
What's the problem?
Please give me a map~
python
356 I want to change the format (date and time display) of the legend in chronological order.
354 JSON.parse fails even though there is no problem with the format.
363 Logging Out with the Application Load Balancer and Authentication Using Cognito
© 2023 OneMinuteCode. All rights reserved.