What command is used to open a file named rainfall.txt for reading?
A) r.open("rainfall.txt")
B) rainfall.txt.open() ;
C) open("rainfall.txt", "w")
D) open("rainfall.txt", "r")
Correct Answer:
Verified
Q2: How is the newline character represented in
Q3: How would you use a for loop
Q4: What statement is used to close a
Q5: What string method is used to format
Q6: When using the format method with a
Q7: Case Study 1:
1. >>> item = 'A
Q8: Case Study 1:
1. >>> item = 'A
Q9: The _ method returns the contents of
Q10: What Python module is used to get
Q11: Use the _ function to connect to
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