Computer Science, asked by nsunita971, 6 days ago

21%2 in python_______​

Answers

Answered by Anonymous
13

Answer:

21%2

= 21 ÷ 2

Quotient : 10

Remainder : 1

When we divide 21 by 2 we get 10 as quotient and 1 as remainder and we know that % (modules operator) returns the remainder so 21%2 is 1.

Explanation:

Some more arithmetic operators in python are as follows:

1. + (Addition operator)

It adds two operands.

Example: 1+2 → 3

2. - (Subtraction operator)

It subtracts two operands.

Example : 1-2 → -2

3. * (Multiplication operator)

It multiples two operands.

Example : 1*2 → 2

4. / (Division operator)

It divides two operands.

Example : 1/2 → 0.5

Answered by nirmaladevsaini
0

Answer:

21%2

= 21 ÷ 2

Quotient : 10

Remainder : 1

When we divide 21 by 2 we get 10 as quotient and 1 as remainder and we know that % (modules operator) returns the remainder so 21%2 is 1.

Explanation:

Some more arithmetic operators in python are as follows:

1. + (Addition operator)

It adds two operands.

Example: 1+2 → 3

2. - (Subtraction operator)

It subtracts two operands.

Example : 1-2 → -2

3. * (Multiplication operator)

It multiples two operands.

Example : 1*2 → 2

4. / (Division operator)

It divides two operands.

Example : 1/2 → 0.5

Explanation:that say

Similar questions