for example read a number=23 and a bit position=2,after checking the i th position replace it with (i+1)th bit.
n = int(input("Enter a number: ")) p