Write about (a) Logical Operator (b) String Operator.
Answers
Answer:
logical operator is a symbol or word used to connect two or more expressions such that the value of the compound expression produced depends only on that of the original expressions and on the meaning of the operator. Common logical operators include AND, OR, and NOT.
The Addition operator, “+”, can be used to concatenate strings together. The STRING function is used to format data into a string. The READS procedure can be used to read values from a string into IDL variables
Answer:
a)-A logical operator is a symbol or word used to connect two or more expressions such that the value of the compound expression produced depends only on that of the original expressions and on the meaning of the operator. Common logical operators include AND, OR, and NOT.
b)-In python, String operators represent the different types of operations that can be employed on the program's string type of variables. Python allows several string operators that can be applied on the python string are as below: Assignment operator: “=.” Concatenate operator: “+.”