try:
x=input('Enter the first number:')
y=input('Enter the second number:')
print x/y
except ZeroDivisionError:
print "The second number can't be zero!"
Enter the first number:10
Enter the second number:0
The second number can't be zero!