< BACKMake Note | BookmarkCONTINUE >
156135250194107072078175030179198180024228156016206217188240240204174053205048045090080000

Lines 1 - 4

Our code begins with the usual Unix start-up line, which, we repeat, will be harmlessly ignored on all non-Unix systems. What follows are three from-import statements which load string.lower() for case-insensitive input verification, random.randint() for choosing the arithmetic operands, random.choice() for picking the arithmetic operation, and all the arithmetic operations we need from the operator module.


Last updated on 9/14/2001
Core Python Programming, © 2002 Prentice Hall PTR

< BACKMake Note | BookmarkCONTINUE >

© 2002, O'Reilly & Associates, Inc.