Multiple Choice
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
Correct Answer:
Verified
Q38: In Python, all data values are objects.
Q39: After input is finished, another call to
Q40: A binary number is sometimes referred to
Q41: What statement regarding the structure of strings
Q42: The exists file system function is included
Q44: A difference between functions and methods is
Q45: Which of the following are examples of
Q46: The string is a mutable data structure.
Q47: What two methods can be used to
Q48: A Caesar cipher uses a plaintext character