I have to read input from a text file in python. The file has 4lines and on each line it has two characters. How do I read in thetext file into two separate variables (one for the first characterand another for the second character for each line)?
Expert Answer
Answer to I have to read input from a text file in python. The file has 4 lines and on each line it has two characters. How do I r…