Computer Science, asked by vishalnigam77, 10 months ago

what are operators?what is their function?give examples of unary and binary operators in python​

Answers

Answered by DebjeetBanerjee
49

Answer:

Operators are special symbols in Python that carry out arithmetic or logical computation. The value that the operator operates on is called the operand. For example: >>> 2+3 5. Here, + is the operator that performs addition. 2 and 3 are the operands and 5 is the output of the operation.

FUNCTION:

Operators are special symbols inPython that carry out arithmetic or logical computation. The value that the operator operates on is called the operand. Here, + is theoperator that performs addition. 2 and 3 are the operands and 5 is the output of the operation.

EXAMPLE OF BINARY OPERATOR:

a = 2+2

print(a)

OUTPUT:

4

EXAMPLE OF UNARY OPERATOR:

a += 2

print(a)

OUTPUT:

4

Answered by sahunikita561
1

Answer:

Operators :- Operators are tokens that trigger some computation/action when applied to variable and other objects in an expression.

Similar questions