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 3 of Functions in Python Programming Language.
def squares():
list = []
for i in range(1, 11):
list.append(i**2)
return list
print(squares())
# Coded by Saahil Shaikh
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP