Hi, welcome back.
In this video, we will learn new by some Web framework called Flask Flask.
Source Code is a python web framework spelled with a small core and easy to extend technique.
But the question here, why is Flass?
I got Web framework, and the answer to this question is, as the following flask is more Pythonic than
the design web framework because the equivalent flask application is more explicit than that Web application
used for the same purpose.
So it is easy for beginners because you can write a few lines of code for getting a simple flask up
and running.
So if we want to create a hello world web application using Flask, the first step to install filters
using Web as the following web install Flast.
So we will open the same Windows operating system or the terminal and Mac OS then type web install flask
as the following, then click enter and Flass package will be installed.
And after installation of last package, we will create a new file and click on Save as they create
a new folder called Hello World.
And then inside this folder, we will save our new folder as Hello World.
But by then we will begin to cut our cap by importing flask.
So from flask import flask with a capital F, then we will assign a variable called F as a following
as a flask object.
So epical flask between two parentheses double underscore name double underscore close the second parentheses.
Now we will use the property of the app as the following.
So at a dot route between two parentheses and two single quotes slash then add a function that contain
the hello world as the following.
So as we learned before, how to create a function.
Yes.
Hello.
Underscore world between two parentheses and empty space then.
Gholam.
Then inside the function, we will return that ring.
Between two single codes, hello, was each capital coma world was.
W cabrito.
Then exclamation mark.
Before we end with the second single court.
Finally, we want to run our app, so we will use the following statement.
So if double underscore name named underscore the word equal between two single code, double underscore
means underscore then column, then inside the F statement, we will use the Trump method so that run
then build our project.
So in the sublime text console window we get that our app is running at the local server, which is
running at each DTV column slash slash one hundred twenty seven point two point 0.01 column, five thousand
slash.
And also it tells me that I can press control and C to quit Xining app.
So I will covid this web address and go to and invested in our Web browser to go to our local host and
check the running flask app as the following.
So I will copy this link at this Zen best and the new window of my Google Chrome Web browser.
Then go to the link, which is a localhost, and we can observe that when we go to the local server
that our app is running okay without no problem.
At this point, we reached the end of this lecture.
I hope you enjoy this lecture and get all of that.
Thanks for watching and thanks for being here.
See you next video.