Hi all,
i previously asked for a Solution for a routine which compares two values and also does a step. It probably was explained to complicated to understand, so i coded the working Solution in Basic for "easier" understanding
How would this be done in Python ? Thanks in advance
[basic]
a=3940
b=5630
x=200
y=5
arr=""
looproutine
for i as integer = y to x step y
arr=arr+"s"+str(a)
a=a+y
next i
if a < b + y then
arr=""
goto looproutine
else
alldone
alldone
exit
[/basic]
i previously asked for a Solution for a routine which compares two values and also does a step. It probably was explained to complicated to understand, so i coded the working Solution in Basic for "easier" understanding
How would this be done in Python ? Thanks in advance
[basic]
a=3940
b=5630
x=200
y=5
arr=""
looproutine
for i as integer = y to x step y
arr=arr+"s"+str(a)
a=a+y
next i
if a < b + y then
arr=""
goto looproutine
else
alldone
alldone
exit
[/basic]