Question: binary representation of a number in python please :) Binary representation of numbers. Write a code that reads (line by line) real numbers from a

 binary representation of a number in python please :) Binary representation

binary representation of a number

in python please :)

Binary representation of numbers. Write a code that reads (line by line) real numbers from a text file, e.g., input.txt, and writes strings (also one per line) with their binary representation into another file, e.g., output.txt. For example, if input.txt looks like this 3 109 -4.7 your code should produce 11 1101101 -100.1011001100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!