Use of ChatGPT for Debugging error in Code

Here is the simple example in which you can see how we can use ChatGPT to debug any error in code, no matter which language you uses: and, the debugging is correct as in line no 4, “)” is missing in if statement.