Question: Consider the following function. Select all correct statements. Instead of three emp_file.write statements we can use emp_file.write(id_num + '+ name+ '+ dept + '
Consider the following function. Select all correct statements. Instead of three emp_file.write statements we can use emp_file.write(id_num + "'+ name+ "'+ dept + ' \ n') The user can enter data of as many employees as he/she likes using this function The code contains error All the given employee data will be appended into 'employees2.txt' file. We can exclude emp_file.close() statement to make the code more efficient if Clear
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
