Computer Science, asked by dassahelijenny, 1 month ago

What is the use of ‘%’ operator in Python?

Answers

Answered by niyatiinn
2

Answer:

The % symbol is used in Python with a large variety of data types and configurations. %s specifically is used to perform concatenation of strings together. It allows us to format a value inside a string. It is used to incorporate another string within a string.

Explanation:

Answered by goldenwind
1

The % symbol in Python is called the Modulo Operator. It returns the remainder of dividing the left hand operand by right hand operand. It's used to get the remainder of a division problem. ... In the previous example a is divided by b , and the remainder is returned.

Hope it helps. Good luck.

Similar questions