Update app.py
Browse files
app.py
CHANGED
@@ -106,11 +106,7 @@ def google(name):
|
|
106 |
f_result = ""
|
107 |
result = {"",""}
|
108 |
text =""
|
109 |
-
|
110 |
-
try:
|
111 |
-
text = code(name)+"\n\n"
|
112 |
-
except:
|
113 |
-
text =""
|
114 |
|
115 |
url = "https://www.google.com/search?q="+name
|
116 |
r = requests.get(url)
|
@@ -157,7 +153,7 @@ def google(name):
|
|
157 |
else:
|
158 |
print("=")
|
159 |
f_result = f_result + r.strip()+"\n\n"
|
160 |
-
|
161 |
return f_result
|
162 |
|
163 |
def greet(name1):
|
@@ -181,7 +177,12 @@ def greet(name1):
|
|
181 |
return "Im not a human so i don't have age"
|
182 |
if "thank u" in name or "thanks" in name or "thank you" in name:
|
183 |
return "ok welcome ....!"
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
185 |
|
186 |
|
187 |
|
|
|
106 |
f_result = ""
|
107 |
result = {"",""}
|
108 |
text =""
|
109 |
+
|
|
|
|
|
|
|
|
|
110 |
|
111 |
url = "https://www.google.com/search?q="+name
|
112 |
r = requests.get(url)
|
|
|
153 |
else:
|
154 |
print("=")
|
155 |
f_result = f_result + r.strip()+"\n\n"
|
156 |
+
|
157 |
return f_result
|
158 |
|
159 |
def greet(name1):
|
|
|
177 |
return "Im not a human so i don't have age"
|
178 |
if "thank u" in name or "thanks" in name or "thank you" in name:
|
179 |
return "ok welcome ....!"
|
180 |
+
if "how to learn" in name or "steps for learning" in name or "step for learning" in name or "steps for" in name or "step for" in name:
|
181 |
+
return google(name)+"\n\n"+code(name)
|
182 |
+
else:
|
183 |
+
return google(name)
|
184 |
+
|
185 |
+
|
186 |
|
187 |
|
188 |
|