Error handling in this section was explained with the help of an example to enter PI. We saw how to handle when a user enters a text instead of a float.
The user may enter 22/7 instead of 3.14. Technically the user is correct but the program will interpret it as a string. Further, it will not be able to convert this into a float.
How do we handle this?