schoginitoys
commited on
Commit
•
953f861
1
Parent(s):
88b2041
Sree
Browse files- __pycache__/examples.cpython-311.pyc +0 -0
- app.py +11 -8
- examples.py +2 -2
__pycache__/examples.cpython-311.pyc
CHANGED
Binary files a/__pycache__/examples.cpython-311.pyc and b/__pycache__/examples.cpython-311.pyc differ
|
|
app.py
CHANGED
@@ -68,14 +68,17 @@ def greet(name):
|
|
68 |
|
69 |
time.sleep(2)
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
79 |
|
80 |
|
81 |
|
|
|
68 |
|
69 |
time.sleep(2)
|
70 |
|
71 |
+
if name=='':
|
72 |
+
msg="Please click any button below or enter your query."
|
73 |
+
else:
|
74 |
+
try:
|
75 |
+
tpl=eval("examples." + name)
|
76 |
+
print("examples." + name)
|
77 |
+
msg = "```python\n" + tpl + "\n```\n"
|
78 |
+
except:
|
79 |
+
tpl=examples.THANKS #PROJECT_TEMPLATE
|
80 |
+
post_it(name) # Save the query in bluehost
|
81 |
+
msg = tpl
|
82 |
|
83 |
|
84 |
|
examples.py
CHANGED
@@ -19,8 +19,8 @@ THANKS = """
|
|
19 |
#### - Explanations: Include kid-friendly explanations below each code snippet
|
20 |
#### - Hyperlinks: Add a link to https://schoginitoys.com for more info
|
21 |
#### - LED Specs: 32 columns x 8 rows; use display.show() after display.set_pixel()
|
22 |
-
|
23 |
-
|
24 |
|
25 |
### 2) Register at https://schoginitoys.com/p01 to gain access to
|
26 |
### our AI Chatbot: Coding Assistance
|
|
|
19 |
#### - Explanations: Include kid-friendly explanations below each code snippet
|
20 |
#### - Hyperlinks: Add a link to https://schoginitoys.com for more info
|
21 |
#### - LED Specs: 32 columns x 8 rows; use display.show() after display.set_pixel()
|
22 |
+
- LED Connections: GP12=Red, GP13=Yellow, GP14=Green; use these for LED-based projects
|
23 |
+
- Ask your question here.
|
24 |
|
25 |
### 2) Register at https://schoginitoys.com/p01 to gain access to
|
26 |
### our AI Chatbot: Coding Assistance
|