Question: Please help me write Python 3 code! Thank you very much! DIL PUSILIULIS Programming challenge description: Given integers n, p1, and p2, determine if the
Please help me write Python 3 code!
Thank you very much!

DIL PUSILIULIS Programming challenge description: Given integers n, p1, and p2, determine if the bits of n in position p1 and p2 are the same. Positions p1, p2 are 1 based with 1 being the least significant bit. 1 import sys 2 for line in sys.stdin: 3 print(line, end="") Input: Your program should read lines of text from standard input. Each line will contain the integers n, p1, and p2, separated by commas. Output: For each line of input, print "true" to standard output if the bits are the same, or "false" otherwise, one per line. Test 1 >_ Test Case Output Test Input 86,2,3 No results to display. Click 'Run Expected Output @ true Test 2 Test Input 125, 1,2 Expected Output false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
