6. Find the errors in the code given below and correct the code :

Errors are mentioned using ‘#’ in the code