-
-
Save amankharwal/ba46b0e2010f6f8c59f03aacfbf74014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = input("type a number:") | |
b = input("type another:") | |
a = int(a) | |
b = int(b) | |
try: | |
print(a / b) | |
except ZeroDivisionError: | |
print("b cannot be zero.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment