Talk:A!&!A
Jump to navigation
Jump to search
You can have a 35-char one:
print({'!':'!A','A':'A!'}[input()])
My one, A and ! works correctly but other programs are undefined behaviour, 31 bytes:
print("A!"[::ord(input())%3-1])
-- i s l p t n g 01:12, 28 July 2025 (UTC) This one is 34 bytes, but it might be a useful approach to implement in other esolangs:
print((x:=input())+chr(ord(x)^96))