IN PYTHON 3!
For this lab, you will need to create a program the writes salesdata to a file.
You will need to prompt for a filename and make sure to checkand handle the case if you cannot open the file by printing themessage:
The file #### cannot be written to!
Please try again…
(where #### is the input from the user)
You will then collect information for a line in the sales datafile. The information is:
Client name
Service name
Amount
Date
If the amount is not a valid floating point number, you mustoutput the error message:
The amount, ####, cannot be converted to a float!
Please try again…
(where #### represents the
OR
OR