From 9a88cbcb0bdb8bdad4d8bc04633732aeeea75caf Mon Sep 17 00:00:00 2001 From: Anandteertha Rao <43106871+anandteertha@users.noreply.github.com> Date: Sat, 12 Oct 2019 22:46:32 +0530 Subject: [PATCH 1/3] Add files via upload --- new.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 new.py diff --git a/new.py b/new.py new file mode 100644 index 0000000..221d0c6 --- /dev/null +++ b/new.py @@ -0,0 +1,6 @@ +ar=input() +ar=ar.split(" ") +c=0 +for n in range(len(ar)): + c = c + int(ar[n]) +print(c) \ No newline at end of file From f80264bae61f57baf9c46c41fdf9aaf4f164377b Mon Sep 17 00:00:00 2001 From: Anandteertha Rao <43106871+anandteertha@users.noreply.github.com> Date: Sat, 12 Oct 2019 22:55:20 +0530 Subject: [PATCH 2/3] Add files via upload --- exc.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 exc.py diff --git a/exc.py b/exc.py new file mode 100644 index 0000000..9d1b261 --- /dev/null +++ b/exc.py @@ -0,0 +1,7 @@ +try: + f = open("testFile",mode = "r") + f.write("writing a line here") +except: + print("hey you have an error") +finally: + print("you tried to write in a read only file!!") \ No newline at end of file From 674cf537456ce0c9f8f852881d6b7c68e76147cd Mon Sep 17 00:00:00 2001 From: Anandteertha Rao <43106871+anandteertha@users.noreply.github.com> Date: Sat, 12 Oct 2019 22:56:24 +0530 Subject: [PATCH 3/3] Add files via upload