Q. Out of the following operators, which ones can be used with strings?
=, -, *, /, //, %, > , < >, in, not in, <=
You can understand by Watching video :-
Answer :-
Operator which one can be used with strings:
(i) *
(ii) >
(iii) in
(iv) not in .
(v) <=
Examples :-
>>> "Path Walla" * 3
'Path WallaPath WallaPath Walla'
>>> "Path" > "Walla"
False
>>> "ll" in "Path Walla"
True
>>> "ll" not in "Path Walla"
False
>>> "Path" <= "Walla"
True
>>>
thnku for answers
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )