Is the loap for this query?

24 views Asked by At

please do u have any idea about solving this issue in python:

For an application where you enter numbers (stops with the first negative number entered) and divide each time the divisor obtained by the new number entered.

How can this be programmed in Python?

Example: For: 9,8,6,4,-1

Results will be:

9/8

(9/8)/6

(9/8)/6)/4

stop

When I tried with loap and [].append It works only 2 steps

0

There are 0 answers