Computer Science, asked by sapnakumare27271, 3 months ago


please don't be wrong answer
1. Write a Python program to print the squares of numbers between 10 to 20.​

Answers

Answered by Anonymous
27

This function will work for the number ’n’ i.e input

steps:-

define function with parameter.

declare list

use for loop and Range() function to take values

make square

add to the list

print list

call the function with parameter

def my_function(n):

list1=[]

for i in range(n):

a=i*i

list1.append(a)

print(list1)

my_function(30)

Hope this will help you.

Answered by snadeemodin90
0

Answer:

what you want to do my

1 .gf

2 . sister

3 .

Similar questions