diff --git a/14 July (Live Session Submission)/Code Snippet Exercise-I/Waseema_Ex1Soln.txt b/14 July (Live Session Submission)/Code Snippet Exercise-I/Waseema_Ex1Soln.txt new file mode 100644 index 0000000..584a328 --- /dev/null +++ b/14 July (Live Session Submission)/Code Snippet Exercise-I/Waseema_Ex1Soln.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!')