Q. Which of the following is not a Python legal string operation?
(a) 'abc'+'abc'
(b) 'abc' *3
(c) 'abc'+3
(d) 'abc'.lower ()
You can understand by Watching video :-
Answer :-
Option (c) is not a Python legal string operation .
Output :-
(a)
>>> 'abc'+'abc'
'abcabc'
>>>
(b)
>>> 'abc' *3
'abcabcabc'
>>>
(d)
>>> 'abc'.lower ()
'abc'
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )