Does indentation affect the execution of the code? (Like in Python.) Or is it just for readability?

Can I use 2 spaces for indentation? Or does it have to be 4?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence