Question: Write a function that takes, as an argument, a positive integer n, and creates a file, named eightBits.txt, containing n randomly generated eight-bit binary strings,
Write a function that takes, as an argument, a positive integer n, and creates a file, named eightBits.txt, containing n randomly generated eight-bit binary strings, each on its own line. Examples of eight-bit binary strings include 10001111 and 00110011. Name this function eightBitStrings(n).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
