Spaces:
No application file
No application file
Update Week 7 Libraries and More Python/18. Own programming language, Part 1
Browse files
Week 7 Libraries and More Python/18. Own programming language, Part 1
CHANGED
|
@@ -86,7 +86,9 @@ def execute(code: str) -> str:
|
|
| 86 |
elif line: # Ignore empty lines
|
| 87 |
raise ValueError(f"Invalid command: {line}")
|
| 88 |
|
| 89 |
-
return '\n'.join(output)
|
|
|
|
|
|
|
| 90 |
|
| 91 |
|
| 92 |
|
|
|
|
| 86 |
elif line: # Ignore empty lines
|
| 87 |
raise ValueError(f"Invalid command: {line}")
|
| 88 |
|
| 89 |
+
# return '\n'.join(output)
|
| 90 |
+
for num in output:
|
| 91 |
+
print(num)
|
| 92 |
|
| 93 |
|
| 94 |
|