Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Using Exceptions

Python: Using Exceptions

a=[3, 4, 0, 8, 2, 11, 0, 18]
for x in a:
     print "%f"%(5/x)
    except ZeroDivisionError:
        print "divide-by-0 exception"

Users who found this page were searching for:

  • program for checksum in java in networking
  • java getstring+language+
  • perl count file lines
  • java program for checksum in netwoking
  • how to print out a copied message in java
  • python search for a string in a file and return number of occurrences in the file
  • java "%tt"
  • javamail gmail pop3 example

No comments yet.

Leave a Comment