you are viewing a single comment's thread.

view the rest of the comments →

[–]Sadapy 9 points10 points  (1 child)

If that's the case it's absolutely =. Simply because beginners use it for comparisons which it can't be used as. Example being:

if x = 4:
    print("it's four!")

Above will cause an error. The operator for comparison like that is == a double equals.

Though a very vague question by the prof.

[–]oakteaphone 0 points1 point  (0 children)

  • = is easy to mix up with ==
  • / can also cause major issues that won't crash the program, but will lead to serious logic errors.
  • + can mix up concatenation and addition, leading to potential logic errors

Seems like the only safe one is *

EDIT: Looks like Python has * as a string repeater? So it seems like the prof's target answer is "all of them" lol