You are attempting to open a file containing a list of integer numbers, each on a separate line, and read them into Python as int types. What statement could you use to do this, assuming each line is represented by the line variable in a continuous loop?
A) num = int(line.strip() )
B) num = line.strip()
C) num = line.strip(int(line) )
D) num = line[:-1]
Correct Answer:
Verified
Q38: What does a mode string of 'r'
Q39: What is the decimal number 98 in
Q40: The decimal number system, which utilizes the
Q41: What os.path module function can you use
Q42: What specific Python module can you use
Q44: Which of the following are examples of
Q45: What does the os module function remove
Q46: In the binary number system, each digit
Q47: What os module function should you use
Q48: You are running a Python script that
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents