[Solved] How can I count the outputs of a while loop in python? [duplicate]
Try this one: counter = 0 while Amzn > 1000: counter+=1 print(“Watch”) Amzn = Amzn – (Amzn*.0103) else: print(“buy”) print(counter) 1 solved How can I count the outputs of a while loop in python? [duplicate]