Computer Science, asked by sahbaj8699, 4 months ago

असाइनमेंट ऑपरेटर की alag alag alag kismen​

Answers

Answered by Draxillus
1

Assignment operators

Assignment operators are used to assign values to a variable.

Example :- a = 8

Here, a is a variable and we have assigned the value 8 to it using an assignment operator = .

Different types of assignment operators :

=

Example :- a = 6

+ =

Example :-

a = 6

a + = 2 #(2 is added to a.)

print(a)

We will get 8 as output.

- =

Example :-

a = 12

a - = 3 #( 3 is subtracted from a.)

print(a)

We will get 9 as output.

Similar questions