Computer Science, asked by anubhavingole, 11 months ago

In Python programming
Generate the list 'k4' having numbers from 100 to 1 in decreasing order, which are also multiple of 25.

Answers

Answered by sherafgan354
0

Following will be the code to do it

k4=[]


for x in range(1, 100):


   if (x%25==0) :

       k4.append(str(x))


print (','.join(k4))

Now what will this program do:

First of all it will create a list k4 it is empty right now

Now it will start a loop in range 1 to 100

After it it will find out the multiples of 25 and take those numbers and appends them in the list

In the end we print the list

Answered by prabhithp1038
3

k4=list(range(100,0,-1*25))

print(k4)

Similar questions