Valid 98-381 Dumps shared by ExamDiscuss.com for Helping Passing 98-381 Exam! ExamDiscuss.com now offer the newest 98-381 exam dumps, the ExamDiscuss.com 98-381 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 98-381 dumps with Test Engine here:
You develop a Python application for your school. You need to read and write data to a text file. If the file does not exist, it must be created. If the file has content, the content must be removed. Which code should you use?
Correct Answer: C
Explanation/Reference: Explanation: Modes 'r+', 'w+' and 'a+' open the file for updating (reading and writing). Mode 'w+' truncates the file. References: https://docs.python.org/2/library/functions.html https://pythontips.com/2014/01/15/the-open-function-explained/
Recent Comments (The most recent comments are at the top.)
Mohamed Sesay - Jan 11, 2022
I want to learn python
Mohamed Sesay - Jan 11, 2022
I want to learn Python ,Please help me with pass Questions and Answers
Recent Comments (The most recent comments are at the top.)
I want to learn python
I want to learn Python ,Please help me with pass Questions and Answers