Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ main
Function
main
16_python_inside_rust/rust/inlinepy/src/main.rs:3–11 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
use inline_python::python;
2
3
fn main() {
4
let who =
"world"
;
5
let n = 5;
6
python! {
7
for i in range('n):
8
print(i,
"Hello"
, 'who)
9
print(
"Goodbye"
)
10
}
11
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected