You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One unique thing about Python is its use of whitespace as part of its syntax. Most programming languages use braces to denote blocks of code, but in Python you use whitespace.
Spaces and tabs are really important in Python.
To tab, you can either hit the tab key or hit the space bar four times. BUT, you're only allowed to do them one way.
Use this Text Editor customization and to make your life a lot easier.
Go to File > Preferences > Settings – User and make it look like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Whitespace vs. Tabs in Python
One unique thing about Python is its use of whitespace as part of its syntax. Most programming languages use braces to denote blocks of code, but in Python you use whitespace.
Spaces and tabs are really important in Python.
To tab, you can either hit the tab key or hit the space bar four times. BUT, you're only allowed to do them one way.
Use this Text Editor customization and to make your life a lot easier.
Go to File > Preferences > Settings – User and make it look like this:
Beta Was this translation helpful? Give feedback.
All reactions