Home
Python Tutorial
Introduction
Data Type
Statement
Operator
String
Tuple
List
Dictionary
Collections
Function
Class
File
Buildin Function
Buildin Module
Database
Regular Expressions
Thread
Tkinker
wxPython
XML
Network
CGI Web
Windows
Menu
Call abs function to get absolute value : abs « Buildin Function « Python Tutorial
Python Tutorial
Buildin Function
abs
print abs(4) print abs(-4)
13.1.abs
13.1.1.
abs() returns the absolute value of the given argument.
13.1.2.
Call abs function to get absolute value