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

Python Python Basics (2015) Logic in Python Containment

Richard Noack
Richard Noack
5,066 Points

can't typ square brackets in the python console

Help Help!! I can't type [] in the python square brackets. How to fix that? I'm using macbook pro and safari

4 Answers

Josh Keenan
Josh Keenan
19,652 Points

Has it started working at all? Could you tell me a bit more about what is going wrong?

Gilbert Craig
Gilbert Craig
2,102 Points

I had the same problem on my iMac. I had to change the input keyboard to British.

Alternative is to press keys with shift u til you find the ones with square brackets.

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

My guess is that you are using a non-US keyboard. While the workspaces editor understands your keymappings on your keyboard, this is not true of the workspaces console. You will need to change your system keyboard to an English variant. Personally, I use the US keyboard layout. Hope this helps! :sparkles:

Zoltan Kovacs
Zoltan Kovacs
2,507 Points

but that means, that I need to change the keyboard settings every time I'm doing the pythong course.

A more permanent fix would be nice for this...