Which of the following serves as concatenation operator?
(a) * (b) + (c) str() (d) =
Answers
Answered by
0
Answer:
The ampersand (&) operator is used to concatenate two or more strings. It is necessary to include the space before
Answered by
0
Explanation:
The answer is (b). The `+` operator is used to concatenate strings in Python. For example, the following code will concatenate the strings "Hello" and "world":
```python
print("Hello" + "world")
```
This will output the following:
```
Helloworld
```
The other options are not concatenation operators. The `*` operator is used for multiplication, the `str()` function is used to convert a value to a string, and the `=` operator is used for assignment.
I hope this helps! Let me know if you have any other questions.
Similar questions