Skip to content

Commit

Permalink
Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaPurbia authored Aug 16, 2021
1 parent de7beee commit 2458714
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tryNo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
try:
n=int(input("enter no:"))
if n>=0:
print("no is=",n)
else:
raise ValueError("value is less then zero")
except ValueError as ex:
print(ex)

0 comments on commit 2458714

Please sign in to comment.