Computer Science, asked by dhanjeetsingh32111, 5 months ago

write a python function to create a print a list where the values are square of number between 1 and 3 (both included )

Answers

Answered by Anonymous
1

Answer:

hi...

Explanation:

def sqlist():

list=[]

for i in range(1,4):

s= i**2

list.append(i)

return(list)

#main

print(sqlist ())

hope it helps you ☺️

Similar questions