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.

Answer :

Answer:

num_count = 0

while num_count < 25:

   print(num_count)

   num_count += 3

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.

Other Questions