Computer Science
What are operators ? What is their function ? Give examples of some unary and binary operators.
Python Funda
117 Likes
Answer
Operators are tokens that trigger some computation/action when applied to variables and other objects in an expression. Unary plus (+), Unary minus (-), Bitwise complement (~), Logical negation (not) are a few examples of unary operators. Examples of binary operators are Addition (+), Subtraction (-), Multiplication (*), Division (/).
Answered By
52 Likes
Related Questions
What is an expression and a statement ?
What all components can a Python program contain ?
Which argument of print( ) would you set for:
(i) changing the default separator (space) ?
(ii) printing the following line in current line ?Which of these is not a legal numeric type in Python ? (a) int (b) float (c) decimal.