Skip to content Skip to sidebar Skip to footer

Indentation Error In Vs Code For Python Script

I'm trying to run the following script in VS Code, however I keep getting an indentation error, which is kinda self-explanatory, but I haven't been able to find the error? Is there

Solution 1:

I don't see any indentation errors in your file.

Yes, you can try to format your file using VS Code. There is a shortcut named editor.action.formatDocument. You can find the exact keys for your setup in settings.

In my case it is shift + option (alt) + F

Post a Comment for "Indentation Error In Vs Code For Python Script"