Spaces:
Sleeping
Sleeping
update UI code
Browse files- ui_module.py +6 -6
ui_module.py
CHANGED
|
@@ -270,12 +270,12 @@ def build_ui(evaluate_fn):
|
|
| 270 |
"Example: Write a function that accepts a list of integers "
|
| 271 |
"and returns the sum of all even numbers. It should handle "
|
| 272 |
"empty lists by returning 0 and ignore non-integer values."
|
| 273 |
-
""
|
| 274 |
-
"The Python code entered should be in the format:"
|
| 275 |
-
"def function name (parameter1, parameter2):"
|
| 276 |
-
"
|
| 277 |
-
"
|
| 278 |
-
"
|
| 279 |
),
|
| 280 |
lines=10,
|
| 281 |
max_lines=20,
|
|
|
|
| 270 |
"Example: Write a function that accepts a list of integers "
|
| 271 |
"and returns the sum of all even numbers. It should handle "
|
| 272 |
"empty lists by returning 0 and ignore non-integer values."
|
| 273 |
+
"\n\n"
|
| 274 |
+
"The Python code entered should be in the format:\n"
|
| 275 |
+
"def function name (parameter1, parameter2):\n"
|
| 276 |
+
"\t# Function body (code to execute)\n"
|
| 277 |
+
"\tresult = parameter1 + parameter2\n"
|
| 278 |
+
"\treturn result # Optional: sends a value back to the caller"
|
| 279 |
),
|
| 280 |
lines=10,
|
| 281 |
max_lines=20,
|