Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def get_coding_exercise(topic, difficulty):
|
|
14 |
"""Generate a coding exercise based on the given topic and difficulty."""
|
15 |
|
16 |
prompt = f"""Create a {difficulty} Python coding exercise about {topic}.
|
17 |
-
Provide ONLY the problem statement and expected output.
|
18 |
Do NOT include any code or solution.
|
19 |
Keep it under 100 words and make it clear and concise."""
|
20 |
try:
|
|
|
14 |
"""Generate a coding exercise based on the given topic and difficulty."""
|
15 |
|
16 |
prompt = f"""Create a {difficulty} Python coding exercise about {topic}.
|
17 |
+
Provide ONLY the problem statement and expected output , sample input and sample output.
|
18 |
Do NOT include any code or solution.
|
19 |
Keep it under 100 words and make it clear and concise."""
|
20 |
try:
|