is there a way i can write a function P (n) such that for any integer n there is a list of three elements, namely the square, cube, and fourth power of n????

i am trying to learn functions and i was looking at a certain book and i saw this question any ideas?