Files
pplus-library/mojo/corpus/manual/snippets/manual-control-flow-29.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
272 B
Mojo
Generated

from std.python import Python
def main() raises:
# Create a mixed-type Python dictionary
var py_dict = Python.evaluate("{'a': 1, 'b': 2.71828, 'c': 'sushi'}")
for py_key in py_dict: # Each key is of type "PythonObject"
print(py_key, py_dict[py_key])