Writing Algorithm before implementing code is a good practice. because it reduces the chances of mistakes and makes code easier to write.