Files
pplus-library/mojo/corpus/manual/snippets/manual-control-flow-28.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

8 lines
229 B
Mojo
Generated

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)