Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
rudy19
Python Web Development Techdegree Student 507 PointsDoes indenting using tab work?
In the video you can CTRL + ] to indent. As it seems, I can also press TAB to indent, haven't ran into any problems (yet). Is that ok? And why won't ENTER spacing work in treehouses asking forum? Its just bunching up every line I try to separate.
1 Answer
Eric M
11,547 PointsHi Rudy,
Pressing tab to indent in Python is fine so long as you are consistent and always use tabs. Mixing tabs and spaces can cause a Python to not execute a program.
Most editors and IDEs will have a setting that converts tabs to a number of spaces you choose. This prevents you from mixing tabs and spaces.
Regarding Treehouse's forum input field - yes, you'll need to use an extra space or it will put it on the same line.
Cheers,
Eric