For what it's worth (I'm not speaking on Facebook's behalf, etc etc), I've done hundreds of interviews for Facebook and I don't think it's a red flag if you write ++ in Python.
Unless you're interviewing as a Python syntax expert or something like that.