human
Python ASCII to binary
assistant
Here is some code to convert ascii value 'P' to binary

bin(ord('P'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.