Exception Handling:-
The try.. except.. finally block
The try block lets you test a block of code for errors.
The except block lets you handle the error.
The finally block lets you execute code, regardless of the result of the try- and except blocks.
You can use the else keyword to define a block of code to be executed if no errors were raised
As a Python developer you can choose to throw an exception if a condition occurs.
To throw (or raise) an exception, use the raise keyword.
The raise keyword is used to raise an exception.
You can define what kind of error to raise, and the text to print to the user.
Built-In Math Functions:-
Python has some built-in math functions like,
min(), max(), pow(), sqrt(), pi(), abs() etc..
Syntax is:- math.min(n1,n2...), math.sqrt(no.) etc.. accordingly
User Input:-
Python allows for user input.
That means we are able to ask the user for input.
Python 3.6 uses the input() method.