[Tutor] command counter

Bo Morris crushed26 at gmail.com
Fri Sep 5 22:32:17 CEST 2014


how would I keep track of count for each time a command exectuted? for
example...

subprocess.Popen("command") && add 1 to count. If count equals n number, do
something.

I have tried count = 0  count += 1, but count does not seem to be
incrementing.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140905/77fea49d/attachment.html>


More information about the Tutor mailing list