I am getting “SyntaxError: bad input” when I do this at self.label.text = “hello”. This even happens sometimes when the line is standalone. Why, please? These algorithms work in the online compilers.
The below routines are from two separate projects. Output.text and input.text are text boxes.
def button_click(self, **event_args):
self.label.text = “hello”
response = self.label.text
self.output.text = response
pass

It looks like the reason you are getting an error is because lines 13 and 14 are not indented correcctly. They need to be one tab in from the start of the def
statement.
You should be able to get the right position by placing the cursor after the :
and pressing enter. Try have them look like this:
def button_click(self, **event_args):
self.label.text = “hello”
response = self.label.text
self.output.text = response
If not required, you can also remove the pass
statement
Thank you, the indenting worked. But for the below I tried indenting all different ways and I still get the bad input error message. This code works on every online text only compiler.

Line 41 and 42 should be indented like the 39 and 40 ones respectively
Thanks, but no matter where I indent 41 and 42 it does not work.
That suggests that the problem is further up. That’s happened to me.
It’s also happened when I mixed spaces and tabs. By default, Python sees a tab as equal to 8 spaces, no matter what tab settings your editor may be using. For this reason, I prefer sticking to spaces throughout.
In general, Python works best when all the indentation is consistent, throughout the module. (It’s also more readable.) That is, everything at level 0 lines up; everything at level 1 lines up; etc.
Can you past a copy of the code before it so we can see if there is an issue?
To paste the code and have it look as in the editor surround the code with ``` before and after or paste a screen shot. like @p.colbert says, I often find that the error is in the line before where the error is flagged.