Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

How do i make the following into one line of code: in_file = open(from_file) indata = in_file.read()

OpenStudy (anonymous):

data = open(from_file).read() That should do it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!