#!/usr/bin/python try: i = int("snakes") print "the integer is", i except ValueError: print "oops! invalid value"