This file contains hidden or 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
| # Authored by Eason Qin | |
| # | |
| # This source code form is dually put into the Public Domain and the Unlicense, | |
| # whichever is more permissive. | |
| import sys | |
| def ex_20(): | |
| name = input("what's your name? ") | |
| print(f"the length of your name is: {len(name)}") |
This file contains hidden or 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
| # Authored by Eason Qin | |
| # | |
| # This source code form is dually put in the Public Domain | |
| # and the Unlicense, whichever is more permissive. | |
| import sys | |
| def excercise_one(): | |
| name = input("what's your name: ") | |
| print(f"hi, {name}!") |
This file contains hidden or 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
| fn main() { let mut s = String::new(); let stdin = std::io::stdin(); stdin.read_line(&mut s).unwrap(); println!( "{}", s.chars().into_iter().filter(|ch| !['a', 'e', 'i', 'o', 'u'].contains(ch)).collect::<String>()); } | |
| /* De-obfuscated: | |
| fn main() { | |
| let mut s = String::new(); | |
| let stdin = std::io::stdin(); | |
| stdin.read_line(&mut s).unwrap(); | |
| println!( | |
| "{}", | |
| s.chars() |
This file contains hidden or 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
| print(' '.join(list(filter((lambda l: l != ''), [''.join(list(filter((lambda v: v != ''), [chr if chr.lower() not in {'a', 'e', 'i', 'o', 'u'} else "" for chr in word])))for word in input().split(" ")])))) | |
| # de-obfuscated: | |
| """ | |
| print( | |
| ' '.join( | |
| list(filter((lambda l: l != ''), | |
| [''.join( | |
| list(filter((lambda v: v != ''), | |
| [chr if chr.lower() not in {'a', 'e', 'i', 'o', 'u'} else "" |
This file contains hidden or 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
| { | |
| "fib": { | |
| "type": "module", | |
| "content": [ | |
| { | |
| "type": "def_stmt", | |
| "content": { | |
| "name": "fib", | |
| "args": [ | |
| { |