I'm writing a program to calculate totals and change for a menu, and I'm having
a few issues. If you could help me, it would be greatly appreciated.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.pyth
d look nicer to you if you had:
colors = ['red', 'blue', 'green']
LAST_COLOR = len(colors) - 1
[...]
if now == LAST_COLOR:
# Do something.
Later,
Blake.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
index = (index + 1) % 4
Why not go a step further?
def neverEndingStatus():
statusChars = ['|', '\\', '-', '/']
while True:
for char in statusChars:
yield char
or
def neverEndingStatus():
w
;x == item ="?) Perhaps someone more in touch with the
compiler internals will chip in here.
It is an interesting philosophical question, though.
Later,
Blake.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
tion, and replacing the characters in the
string. (If you need help getting that working, give it a good try, and
post what you have, and I'll be happy to assist you.)
Later,
Blake.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
grams easier to read/debug/optimize/prove correct.
Later,
Blake.
___
Tutor maillist - [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor