Abdul Niyas P M

5,258
reputation
2
11
29

Pythonista and Rustacean .

use std::process::Command;

fn main() {
    let output = Command::new("python")
        .arg("-c")
        .arg("print('Hello World')")
        .output()
        .expect("failed to execute process");

    println!("{}",  String::from_utf8(output.stdout).unwrap());
}