¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita- 1
Define python function called absolute that takes one parameter and return one absolute value of x ie:|x|=(x if >=0,-x otherwis
2 Respuestas
0
def abs(num):
if(num>=0):
return num
else:
return -num