Bit positions.     Python or Java please! Preffers Python. Thank you Input: Your program should read lines of text form standard input . Each line will contain the integers p1 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. Test1: 86,2,3 Output : True Test2: 125,1,2 Oustput False

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 7PP: (Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point...
icon
Related questions
Topic Video
Question
100%

Bit positions.     Python or Java please! Preffers Python. Thank you

Input: Your program should read lines of text form standard input . Each line will contain the integers p1 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.

Test1:

86,2,3

Output : True

Test2:

125,1,2

Oustput False

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr