M
Modular15mo ago
ldw

How do I use or import top-level python functions in Mojo?

How would I use top-level python functions like round() and map()?
1 Reply
ldw
ldwOP15mo ago
Ah, I found the answer by browsing other questions...: from python import Python fn main() raises: let builtins = Python.import_module("builtins")

Did you find this page helpful?