Function To Create a List of Squares of Numbers From 1 To 10 || Type 1 || Functions || Python

 

In this we are going to see how to build a function to To Create a List of Squares of Numbers From 1 To 10 - Type 1 of Functions in Python Programming Language.

def squares():
    list = []
    for i in range(1, 11):
        list.append(i**2)
    print(list)


squares()

# Coded By DHIRAJ SHELKE

#ENJOY CODING


Post a Comment

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

Previous Post Next Post