Education, Computer Science, Programming, Mathematics, Golden Ratio.
generate the next number in the sequence by taking the sum of the last two. The index -1 and -2 get the last and second to last items in a list, respectively. In line 6, the function append puts a number at the end of the list. In line 7, we look at the ratio of the last two integers in the list.