Mega Code Archive

 
Categories / Python Tutorial / Buildin Function
 

Call abs function to get absolute value

print abs(4) print abs(-4)