Project Euler 42 - Coded triangle numbers

Official link:

Thought Process

I'm going to imagine there is a word with 20 letters and they are all z's, the word value of this number would be 520, it would be the 23rd triangle number, so I generate a list containing the first 23 triangle numbers.

From Problem 22 I use the same function to find the word value of a name. I simply go through the list with all the names, find the word value and see if it is in the triangle numbers list.

Interactive Code

No interactive code for this one, my code is provided below