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 @@ + 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"])