Computer Science, asked by Jayshil6104, 5 months ago

Write any two differences between concatenation and replication operators in string manipulation.

Answers

Answered by Rajakhavin
10

Answer:

Concatenation operators

The addition operator + is also known as a concatenation operator when applied on two python strings.

What is concatenation? The meaning of the word concatenation tells everything about the functionality. It links in a chain or series. In other words, the concatenation operator connects one string at the end of the other.

Replication Operator

The multiplication operator acts as a replication operator when we have one string and one integer as operands.

What is replication? First, understand the meaning of the word replication. The purpose is to make an exact copy. Moreover, the replication operator produces the n number of copies of a string, n may be any integer.

Similar questions