Closed vazudew closed 4 years ago
Changes has been done in script
Changes done in the script is wrong https://github.com/ajeyln/python_scripts_hackkerrank/blob/master/01_introduction/04_arithmetic_operators_division_python.py#L9 User gives a non-zero number, but still he will get the message " print(" Please Enter second number other than zero")" This is wrong because, user has given non-zero number
Changes has done, such away that the scripts pops up until second number is other than 0
There will be an exception thrown when user gives b value 0.
Please see that no exception is thrown on console. Put in try/catch fashion and display right message saying, cannot divide by 0.