f = int(input("Enter a number: "))
if(f%7==0):
print("It's divisible by 7.")
else:
if(f<7):
print("7")
else:
print(str(f-(f%7))+", "+str(f+(7-(f%7))))
Answer: >>> for count in range(10, 14):
print(count)
Explanation:
just took the test on edg
Flip bit position 5 to accomplish this. This maps to hex value 0x20, where the least significant bit is assumed to be at position 0.
Example: ascii "A" = 0x41, "a" = 0x61. 0x41 xor 0x61 = 0x20.
You would implement a flip function by XOR'ing the character value with 0x20.