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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!