Spaces:
Sleeping
Sleeping
Up date UI description
Browse files- ui_module.py +6 -0
ui_module.py
CHANGED
|
@@ -270,6 +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 |
lines=10,
|
| 275 |
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 |
+
""
|
| 274 |
+
"The Python code entered should be in the format:"
|
| 275 |
+
"def function name (parameter1, parameter2):"
|
| 276 |
+
" # Function body (code to execute)"
|
| 277 |
+
" result = parameter1 + parameter2"
|
| 278 |
+
" return result # Optional: sends a value back to the caller"
|
| 279 |
),
|
| 280 |
lines=10,
|
| 281 |
max_lines=20,
|