diff --git a/14 July (Live Session Submission)/Code Snippet Exercise-I/ADI_EX1Sol.txt b/14 July (Live Session Submission)/Code Snippet Exercise-I/ADI_EX1Sol.txt new file mode 100644 index 0000000..6b48109 --- /dev/null +++ b/14 July (Live Session Submission)/Code Snippet Exercise-I/ADI_EX1Sol.txt @@ -0,0 +1,8 @@ +ADI_list = [10, 20, 30, 40] +ADIiter = iter(ADI_list) +try: + while True: + val= next(ADIiter) + print(val) +except StopIteration: + print('Stop!')