Question: Write some code that asks the user to enter either of the words append or new. According to the user response, open either an existing
Write some code that asks the user to enter either of the words append or new. According to the user response, open either an existing text file to which data can be appended or a new, empty text file to which data can be written. In either case, the file’s name is a string given by the variable fileName.
Step by Step Solution
3.52 Rating (179 Votes )
There are 3 Steps involved in it
The str function is used to typecast a variable into a ... View full answer
Get step-by-step solutions from verified subject matter experts
