What is abs in python?



What is abs in python?..

Answer / Harshit Arora

`abs()` in Python is a built-in function that returns the absolute value of its argument. This means it returns a positive value when given a negative number or leaves the positive numbers unchanged.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is python easy?

1 Answers  


What do you mean by overriding methods?

1 Answers  


What is class used for in python?

1 Answers  


Is nan in python pandas?

1 Answers  


Which server is used for python?

1 Answers  


Why do we need Python Directories

1 Answers  


What is split() function?

1 Answers  


What is difference between input and raw_input?

1 Answers  


Is python free or paid?

1 Answers  


What is the necessity to use pass statement in python program?

1 Answers  


What will be the output of the code:def foo (i=[])?

1 Answers  


Why python is called python?

1 Answers  


Categories