117k views
4 votes
Write a python script using while loop which display the number list with an increment of 3 between 1 and 25. Display the output in one row as shown.

1 Answer

3 votes

Answer:

num_count = 0

while num_count < 25:

print(num_count)

num_count += 3

Step-by-step explanation:

A while loop statement is defined in the python source code above. An integer variable 'num_count' is defined and continuously incremented by three in the loop until it is greater than 25. the output of the while loop between 1 and 25 is print on the screen.

User Xapslock
by
4.3k points