While loop with interactive exit/break
Hello again
I have (yet another) possibly trivial question.
I want to make a program loop that will add elements to an array as long as the user wants to.
Is this even possible in MathCAD?
In python the basic loop would look something like below (formating difficult):
answer='Y'counter=0
array=[]
while answer=='Y':
answer=str(input("Add another? (Y/n) :"))
answer=answer.upper()
array.append(answer)
print(array)
This can look like this when run in Python:
Add another? (Y/n) : Y Add another? (Y/n) : Y Add another? (Y/n) : n
['Y', 'Y', 'N']


