Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhil-64 authored Oct 2, 2019
1 parent 95e7caf commit 742d3a3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 120 prog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
print("natural numbers")
n=0
def exception1(n1):
try:
while True:
print(n1)
n1=n1+1
if(n1>20):
raise StopIteration
except StopIteration:
print("number exceeds limit")

exception1(n)

0 comments on commit 742d3a3

Please sign in to comment.