Skip to content

Commit f15830c

Browse files
committed
Add comments to get_ans function
1 parent 72be8fb commit f15830c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/arguments/utility.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ def get_que(self, json_data):
7171
return que_id
7272

7373
def get_ans(self, questions_list):
74+
"""
75+
This function prints the answer to the queries
76+
(question and tags) provided by the user. It does so
77+
in the following manner :
78+
79+
1) Takes in account only th first question id from the
80+
list of question ids
81+
82+
2) Tries to get a response from the url obtained by appending
83+
question id to the search_content_url variable
84+
85+
3) Use the data received from the above request and loop
86+
through it to print the answer
87+
"""
7488
ans = []
7589
for questions in range(1):
7690
try:

0 commit comments

Comments
 (0)