use of unknown declaration 'Python'
I get the following error message when writing a line of Code i got from Mojo Playground
This is the line:
let py = Python.import_module("bultins")
6 Replies
Have you performed import before? (from python import Python)
yup
i think you just misspelled it it's supposed to be
let py = Python.import_module("builtins")
and @gryznar it was giving me an error when that line of code was outside of the main function but now i have it inside
main()
function is required in Mojo 🙂goated!