fork(2) download
  1. f=lambda s:"".join([str,str.capitalize][ord(l)<91]({"a":"obo","e":"unu","i":"ini","o":"api","u":"iki"}.get(l.lower(),l))for l in s)
  2.  
  3.  
  4. tests = ["Shaun", "Java", "Hello, World!", "Alan", "Australia"]
  5. for t in tests:
  6. print t, "-->", f(t)
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
Shaun --> Shoboikin
Java --> Jobovobo
Hello, World! --> Hunullapi, Wapirld!
Alan --> Obolobon
Australia --> Oboikistroboliniobo