0
Test case 2,3 failing why?
Creating a file with 1 to n numbers with different lines my output was correct but test case 2 , 3 are failing please check it https://code.sololearn.com/cb991L4Tz16S/?ref=app
2 Answers
+ 1
Narendhar Kothuri
The âaâ mode writes the file from the end of it and doesnât care about what has already been written, while the âwâ mode erases the file to an empty state and starts writing and the beginning of the file.
0
Can you please explain me what is exact difference between 'a' and 'w' mode