We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Talk:A!&!A

From Esolang
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))

PkmnQ (talk) 08:30, 28 July 2025 (UTC)