i am still not able to understand the concept of finally it will always execute the code either the exception is caught or not. if we use simple print statement insted of finally it is doing the same task then what is the difference?? if we had to simply run the code then why we are using try catch statements???
Finally keyword
Hey Kushal,
The answer to this question has been given in the video. Kindly refer to the timestep 3:50 of the video, it has been well described why we use finally when print does the same thing (there’s a catch)
If you still don’t understand, let me know. I will explain it to you in detail.