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 Types and Branching Strings and Operators

backslash does not work mac keyboard

I am using a Mac Keyboard and the backslash does not work. I get "(arg: 7)" instead of the backslash. None of the shortcots containing (option + shift + number) do work. Can I change that in workspace? thx

2 Answers

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

Hi there, Luca Gerosa! It sounds like you're having the same problem I had when I lived in Sweden and was working with a Swedish keyboard. Workspaces use the "US qwerty" keyboard and there is no way to change that in the workspaces.

I was using a Windows for the most part, so I could use "alt codes", but that won't be the case for your Mac. When I used a Mac together with workspaces, I had to change the keyboard settings on my Mac to be US qwerty while I was using workspaces.

Hope this helps! :sparkles:

Hi Jennifer Thanks for your reply. I checked your advice and changed my keyboard settings but I am not yet sure with which keyboard I will proceed :)

Anyway, much thanks for your help