Find the operator which cannot be used with a string in Python from
the following:
(a) + (b) in (c) * (d) //
Answers
Answered by
22
(d) // is the correct answer.
- Python is a commonly used programming language. String refers to the sequence of characters. It is immutable.
- '+' operator is used in strings to add the two strings.
- '*' operator is used to multiply the string or in other words it is used to repeat the data.
- 'in' operator gives Boolean output. It checks for the presence or absence of particular character in string.
Similar questions