[Solved] How can I count the outputs of a while loop in python? [duplicate]KiratJanuary 20, 2023Solved 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] # count# output# python# while-loop