$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #221

What goes in the blank?

# read the whole file into one string
text = f.____()

Answer: read (also accepted: read, read())

read() returns the entire remaining contents as a single string.
Play Problem Solving ▸