Python Square Function || Lambda Function || Python
In this we are going to see a basic program on squares of numbers using lambda in Python Programming Language.


squares = [lambda x=x: x * x for x in range(1, 21)]

for sq in squares:
    print(sq(),end=" ")

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post