Tilde: this character is on the same key as the #. To type ~ hold the left Shift key with your left little finger and press its key with your left right finger.
Underscore also called underline, underbar, low line, or low dash: this character is located with the Minus key. To type _ hold the left Shift key with your left little finger and press its key with your right little finger.