After you’ve opened a log file as file, which line of code will help you read the file into a variable called text?

Automate Cybersecurity Tasks with Python | Weekly challenge 4 Quiz | 

After you’ve opened a log file as file, which line of code will help you read the file into a variable called text?

  • text.read(file)
  • text = file.read()
  • text = read(file, “r”)
  • text = read(file)

 

Leave a Comment