Now we will create our Python file to write the code, mine is named “app.py”. We must keep this file in a separate folder. The following line imports the Flask class from the flask package. Now we will create an object of the Flask class which in this case is called “app”.