Yes, you can, actually.
Pyinstaller will produce PE, ELF, and Mach-O executables, and
Py2wasm will produce wasm modules that will run in just about any modern browser.
How is someone just learning coding expected to understand half the words you just typed.