<human>:  Python ASCII to binary
<bot>: 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.