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