Computer Science
Out of the following operators, which ones can be used with strings in Python?
=, -, *, /, //, %, >, <>, in, not in, <=
Python String Manipulation
18 Likes
Answer
The following Python operators can be used with strings:
=, *, >, in, not in, <=
Answered By
10 Likes
Related Questions
State whether the following statement is True or False :
The split() returns always a 3-element list.
Write a Python script that traverses through an input string and prints its characters in different lines — two characters per line.
What is the result of following statement, if the input is 'Fun'?
print(input("…") + "trial" + "Ooty" * 3)
Which of the following is not a Python legal string operation?
(a) 'abc' + 'abc'
(b) 'abc' * 3
(c) 'abc' + .3
(d) 'abc.lower()