UA
Jump to navigation
Jump to search
UA is 'ukrainish' esolang, only outputing national things of Ukraine.
commands
command | descripton |
---|---|
required | required |
h | output the hymn (incompletely) |
f | describe the flag with output |
optional | optional |
0 | output the "У ржі на межі" song (incompletely ) |
1 | output the "Ой вінку мій, вінку!" song (incompletely ) |
2 | output the "Ой у лузі червона калина похилилася" song (incompletely ) |
interpreter in python
def ua_interpreter(code: str): for command in code: if command == "h": print("Ще не вмерла України... (Ukrainian National Anthem)") elif command == "f": print("The flag of Ukraine is a horizontal bicolor of blue and yellow.") elif command == "0": print("♪ У ржі на межі, на криввій березі... (U rzhi na mezhi, na kriviy berezi)") elif command == "1": print("♪ Ой вінку мій, вінку! (Oi vinku miy, vinku!)") elif command == "2": print("♪ Ой у лузі червона калина похилилася... (Oi u luzi chervona kalyna)") else: print(f"Unknown command: {command}") code=input() ua_interpreter(code)