ch = input("Enter a character : ")
print("ASCII value of "+ ch +" is : ",ord(ch))

print("Binary value of ", ch, " is : ", bin(ord(ch)))
'''
OUTPUT -
Enter a character : A
ASCII value of A is :  65
Binary value of  A  is :  0b1000001
'''

