Why do I get this traceback with the infinite loop below but not with the definitw loop (bottom of mail)? Thanks for help, Marcus.
count = 0 total = 0 while True: x = raw_input('Enter a number') count = count + 1 total = total + x print count, total, (total/count) Traceback (most recent call last): File "C:\Python27\enter_a_number.py", line 6, in <module> total = total + x TypeError: unsupported operand type(s) for +: 'int' and 'str' --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. http://www.avast.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor