Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # encoding: utf-8
- #
- # Copyright (c) 2010 Doug Hellmann. All rights reserved.
- #
- """OverflowError
- """
- #end_pymotw_header
- x = 10.0 ** 200
- print 'x =', x
- print 'x*x =', x*x
- try:
- print 'x**2 =', x**2
- except OverflowError, err:
- print err
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement