👉 In mathematics and logic, a unary function is a function that takes one argument. For example, in set theory, a unary predicate is a function that takes one argument and returns a boolean value. A unary operator is a mathematical operation that operates on numbers or variables without any arguments. For instance, the binary operation of addition ( + ) is a unary operation. In programming languages like Python, a unary operator can be defined as an arithmetic expression that performs a specific arithmetic operation without taking any input arguments