Computer Science, asked by ayushkumar9338, 1 year ago

Which of the following is not a Python legal string operation?

a)'xyz'+'xyz'

b) 'abc'* 3

c) 'xyz'+ 3

d) 'abc'.lower() ​

Answers

Answered by 5queen36
8

 Bonjour

Option C is correct

Answered by lovingheart
11

Answer:

'abc'* 3 is not a Python legal string operation

Explanation:

Option a: This is a valid string operation because, “+” is a concatenate operator where it combines two strings

Option c: This is also valid because it append or combine a character and string.

Option d: This is once again valid because we are converting the given string to lower case using the built-in string function.

Option b: ‘*’ is a multiplication operator where it is not allowed to combine along with the string. So this is an invalid option.

Similar questions