This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "YourName" # Replace with the name you want to use | |
name *= 3 # Enlarge the name so it can fill a larger area | |
print('\n'.join( | |
[''.join( | |
[name[(x-y)%len(name)] if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else ' ' for x in range(-30,30)] | |
) for y in range(15,-15,-1)] | |
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::Write; | |
use std::path::PathBuf; | |
use std::time::Instant; | |
fn get_input(query: &str) -> std::io::Result<String> { | |
println!("{}", query); | |
std::io::stdout().flush()?; | |
let mut buffer = String::new(); | |
std::io::stdin().read_line(&mut buffer)?; | |
Ok(buffer.trim().to_owned()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
While True: print(eval(input('>>>'))) |