pub fn input(prompt: &str) -> Result<String, String>
Expand description
Provides an easy-to-use way to receive input from the user (via standard input)
ยงExample
use pythonic_helper::io::input;
println!("Please enter your name");
let name_result = input("> ");
let name: String = name_result.unwrap_or("default".to_owned());