Skip to content

Instantly share code, notes, and snippets.

@Tej-Singh-Rana
Created March 24, 2020 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tej-Singh-Rana/91cbe27a87c0005322401b222661800f to your computer and use it in GitHub Desktop.
Save Tej-Singh-Rana/91cbe27a87c0005322401b222661800f to your computer and use it in GitHub Desktop.
#!/bin/python3
try:
x = int(input())
y = int(input())
z = x + y
print(z)
except ValueError:
print("Enter the correct numeric value. ")
except SyntaxError:
print("Enter the correct numeric value. ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment