OPERATORS ARE TOKENS THAT TRIGGER SOME COMPUTATION WHEN APPLIED TO VARIABLES AND OTHER OBJECTS IN AN EXPRESSION. VARIABLES AND OBJECTS TO WHICH THE COMPUTATION IS APPLIED ARE CALLED THE OPERANDS.
EG:- A + BTYPES OF OPERATORS :
1) ARITHMETIC OPERATORS:
+ ADDITION - SUBTRACTION
* MULTIPLICATION / DIVISION
% REMAINDER/MODULUS ** EXPONENT(RAISE TO THE POWER)
// FLOOR DIVISION
2) IDENTITY OPERATORS:
IS IS THE IDENTITY SAME ?
IS NOT IS THE IDENTITY NOT SAME ?
3) RELATIONAL OPERATORS:
< LESS THAN
> GREATER THAN
<= LESS THAN OR EQUAL TO
>= GREATER THAN OR EQUAL TO
== EQUAL TO
!= NOT EQUAL TO
4) ASSIGNMENT OPERATORS:
= ASSIGNMENT /= ASSIGN QUOTIENT
+= ASSIGN SUM *= ASSIGN PRODUCT
%= ASSIGN REMAINDER -= ASSIGN DIFFERENCE
**= ASSIGN EXPONENT //= ASSIGN FLOOR DIVISION
5) LOGICAL OPERATORS:
AND LOGICAK AND
OR LOGICAL OR
6) MEMBERSHIP OPERATORS:
IN WHETHER VARIABLE IN SEQUENCE
NOT IN WHETHER VARIABLE NOT IN SEQUENCE
PUNCTUATORSPUNCTUATORS ARE THE SYMBOLS THAT ARE USED IN PROGRAMMING LANGUAGES TO ORGANIZE SENTENCE STRUCTURES , AND INDICATE THE RYTHM AND EMPHASIS OF EXPRESSIONS , STATEMENTS , AND PROGRAM STRUCTURE .
EG:-
'' "" # \ ( ) [ ] { } @ , : . ` =
THESE WERE MOST COMMON PUNCTUATORS OF PYTHON PROGRAMMING LANGUAGE👆
No comments:
Post a Comment