Wap to create a list consists of cube elements to other list

s=[x**3 for x in range(1,7)]
print(s)

1 Like

Very nice, keep it up.

[1, 8, 27, 64, 125, 216] (Yashaswini)

3 Likes

Very Good :+1: keep it up :fire:

1 Like