Generate pascal triangle as nested list

Provide the number of rows in the pascal triangle that you want to see into the pascal_triangle function and you will get it as a nested list.