Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (2015) Python Data Types Lists

I can't add [] nor {} in the python shell (although I can when writing in a file)

Is this just happening to me?

please share the example of what you are trying to do, it would help us to understand the situation and provide better solutions.

>>> str = "My name is {}."
>>> str.format("Max")
'My name is Max.'
>>>

above is my python shell example of using {}.

There's not really an example. When I press "alt + shift + 8" (I'm in a mac), while writing on the shell, it doesn't show the curly brackets. My problem is that I'm only able to write normal parentheses (on the shell). Was this clear?

I didn't know that there is no curly braces in mac keyboard, or maybe i didn't understood the situation.

But,

http://www.wikihow.com/Create-Curly-Brackets-on-an-AZERTY-Keyboard-(Mac)

https://www.codecademy.com/en/forum_questions/50a774e641c7da25f8000d34

These might help.

If you find an answer please do post it as answer and close the question as it adds to the search for unanswered questions.

I can add {} and [] everywhere EXCEPT on the shell (like in the video). That's my problem

Same problem for me.

When I press "alt + shift + 5" (I'm in a mac), while writing on the shell, it doesn't show the brackets.

It works here in the comment section, as well as everywhere else.

Thanks.

2 Answers

Alexandra Reiter
Alexandra Reiter
6,576 Points

I have the same problem, I use Windows 7. I can type [] and {} always (like now), but can't when I'm using workspace here. Which is annoying because I can not make the tasks together with Kevin...or practicing either

i use win10, never got this problem. Wonder what is going wrong.

Alexandra Reiter
Alexandra Reiter
6,576 Points

have no idea. I finished a few course before here on Treehouse and never had any problem with using Workspace. Except with Python. Even if I change the language of my keyboard is not working