---
title: "Comment by Siddharth Chandra on \"Python program to print the square of all elements in a list\" | Hashnode"
description: "One more way is to use lazy evaluation: map(lambda x: x*x, num))"
url: "https://hashnode.com/posts/python-program-to-print-the-square-of-all-elements-in-a-list/60c248b2a25fa357af83e47f/comment/60c30042a25fa357af83ee8f"
---

[Discussion](https://hashnode.com/posts/python-program-to-print-the-square-of-all-elements-in-a-list/60c248b2a25fa357af83e47f)

Comment [Python program to print the square of all elements in a list](https://hashnode.com/posts/python-program-to-print-the-square-of-all-elements-in-a-list/60c248b2a25fa357af83e47f)

[Siddharth Chandra](https://hashnode.com/@chandraji)

[Jun 11, 2021](https://hashnode.com/posts/python-program-to-print-the-square-of-all-elements-in-a-list/60c248b2a25fa357af83e47f/comment/60c30042a25fa357af83ee8f)

One more way is to use lazy evaluation:

map(lambda x: x\*x, num))

[Nishant Tiwari](https://hashnode.com/@dx4iot)

[Jun 11, 2021](https://hashnode.com/posts/python-program-to-print-the-square-of-all-elements-in-a-list/60c248b2a25fa357af83e47f/comment/60c30042a25fa357af83ee8f#reply-60c39c50a25fa357af840065)

yes correct 😃
