The ___________ operator is also known as the concatenate operator. It is used to combine one or more text strings to produce an output as a single string.
Answers
Answer:
The concatenate operator is also known as the concatenate operator. It is used to combine one or more text strings to produce an output as a single string.
The addition(+) operator is also known as the concatenate operator. It is used to combine one or more text strings to produce an output as a single string.
Extra Information
Alphabets, words, or other characters when enclosed between single quotation marks (' ') or double quotation marks (" ") are called strings.
Example
In this print statement
print('10'+'20')
10 and 20 are separately enclosed between single quotation marks which means they are two strings and the plus (+) sign between them is used to concatenate or join both strings.
If you wanted the addition of both numbers i.e. 10 and 20 then the print statement would have been
print(10 + 20)
The output would have been 30.
More Examples
1. print("Hello " + " World!")
Output
Hello World!
2. print("This " + "boy" + " is" + " 2" + " years" + " old.")
Output
This boy is 2 years old.
Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.