Pyscript1.py not working (IndentationError: unexpected indent)

I’ve just followed the tutorial and it worked as expected in my case.

Could it be that your have a different (Chinese, arabic, etc) format instead of UTF-8?

Before and after pasting the content on robot_control_class.py, could you check the format enabled in the IDE?

If it is different, could you change it to UTF-8, just like what we have in the image below?