Computer Science

Which arithmetic operator(s) cannot be used with strings ?

  1. +
  2. *
  3. -
  4. All of these

Python String Manipulation

1 Like

Answer

-

Reason — The arithmetic operator "-" (minus) cannot be used with strings in Python. The "+" operator is used for string concatenation, "*" is used for string repetition, but the "-" (minus) operator does not have a defined meaning for strings and will result in an error if used with strings.

Answered By

1 Like


Related Questions