Missing several characters needed for coding

Hi - I’m using a MacBook Pro w/ OS 10.11.6 (yes, I realize it’s an old laptop) and trying to do the first exercise in the LearnYouNode. When I get into the console and try to type some code, there are several missing characters needed that don’t show up when I press the keys. Such as double-quotes, single-quote, tilde and accent. Of course, the code won’t run without those characters. Here these characters work: " ’ ~ ` - so it’s not my keyboard.

Thanks in advance.