Files
pplus-web/mojo/corpus/manual/snippets/manual-control-flow-24.mojo
T
2026-10-05 03:03:38 +00:00

8 lines
229 B
Mojo

from std.python import Python
def main() raises:
# Create a mixed-type Python list
var py_list = Python.list(42, "cat", 3.14159)
for py_obj in py_list: # Each element is of type "PythonObject"
print(py_obj)