From 2d054d948627fdb95d974381dbee881ad45e49da Mon Sep 17 00:00:00 2001 From: CharanInduri18 Date: Fri, 28 Feb 2025 01:27:36 +0530 Subject: [PATCH 1/2] Create MyTest.py --- Day-10/MyTest.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 Day-10/MyTest.py diff --git a/Day-10/MyTest.py b/Day-10/MyTest.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Day-10/MyTest.py @@ -0,0 +1 @@ + From 850e7370924fa3018aba5c53333c5fb4e3db8b10 Mon Sep 17 00:00:00 2001 From: CInduri Date: Sat, 1 Mar 2025 12:13:49 +0000 Subject: [PATCH 2/2] --- Day-10/Test.py | 18 ++++++++++++++++++ Day-11/Test.py | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 Day-10/Test.py create mode 100644 Day-11/Test.py diff --git a/Day-10/Test.py b/Day-10/Test.py new file mode 100644 index 00000000..8bdafbee --- /dev/null +++ b/Day-10/Test.py @@ -0,0 +1,18 @@ +import os + +folders = input("Enter the folders with spaces: ").split() + +for folder in folders: + try: + files = os.listdir(folder) + except FileNotFoundError: + print("Provide a valid folder instead of " + folder) + continue + count =str(len(files)) + print("List of files under the folder " + folder + " are " + count) + for file in files: + print(file) + + + + \ No newline at end of file diff --git a/Day-11/Test.py b/Day-11/Test.py new file mode 100644 index 00000000..f60c993f --- /dev/null +++ b/Day-11/Test.py @@ -0,0 +1,7 @@ +import requests + +response = requests.get("https://api.github.com/repos/kubernetes/kubernetes/pulls") +data = response.json() +#for i in data: +for i in range(len(data)): + print(data[i]["id"])