Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

edXAndrew2012

  • 3 years ago

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

  • This Question is Closed
  1. Shini
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

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

  2. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy