Computer Science, asked by Anonymous, 2 months ago

Is there any difference between the syntax of arithmetic and Assignment operators used in python and Javascript?

Answers

Answered by NiyaSurve
1

Answer:Arithmetic Operators are used to perform mathematical calculations. Assignment Operators are used to assign a value to a property or variable. Assignment Operators can be numeric, date, system, time, or text.

Operators

There are various types of operators discussed in this appendix. The following types are provided:

  • Arithmetic Operators are used to perform mathematical calculations.
  • Assignment Operators are used to assign a value to a property or variable. Assignment Operators can be numeric, date, system, time, or text.
  • Comparison Operators are used to perform comparisons.
  • Concatenation Operators are used to combine strings.
  • Logical Operators are used to perform logical operations and include AND, OR, or NOT.
  • Boolean Operators include AND, OR, XOR, or NOT and can have one of two values, true or false.

Arithmetic

  • Negation
  • Exponentiation
  • Multiplication and division
  • Integer division
  • Modulus arithmetic
  • Addition and Subtraction
  • String concatenation

Comparison

  • Equality
  • Inequality
  • Less than
  • Greater than
  • Less than or equal to
  • Greater than or equal to
  • Is

Logical

  • Not
  • And
  • Or
  • Xor

If addition and subtraction, multiplication and division, occur together respectively in an expression, each operation is evaluated as it occurs from left to right.

The string concatenation operator (&) is not an arithmetic operator, but in precedence, it does fall after all arithmetic operators and before all comparison operators. The Is operator is an object reference comparison operator. It does not compare objects or their values; it checks only to determine whether two object references refer to the same object.

Answered by MathTeacher029
0

Arithmetic Operators are used to perform mathematical calculations. Assignment Operators are used to assign a value to a property or variable. Assignment Operators can be numeric, date, system, time, or text.

Similar questions