Answer:
To open the file (data.txt) to read in Python, use this command:
nameData = open('data.txt', 'r')
This will create a file object called nameData, which can then be used to access the contents of the file.
Step-by-step explanation:
9.5m questions
12.2m answers