Frustration solved! Finally !
I have had my mac for about 10 months, but I still hadn’t figured out where to find those programming keys like curly braces, square brackets, straight vertical (pipe) and tilde to name a few on my keyboard.
The solution was easy when I found it, but it wasn’t intuitive for me. After all, it took me 10 months.
These works for norwegian keyboard layout (and probably some more):
~ = Option + ^
| = Option + 7
[ = Option + 8
] = Option + 9
{ = Option + Shift + 8
} = Option + Shift + 9
\ = Option + Shift + 7