Python language, Python basics.
Course Description
This free online Python course covers fundamentals like data types, operators, control flow, functions, and object-oriented programming to help beginners build a strong foundation.
It includes lessons, quizzes, projects like virtual assistant and web development with Flask to provide practical learning.
starting with basic ‘hello world’ programming to web appilicatons along variables,statements,functions etc..
Learn basic condtional statements ,defining functions and objects of the python programming.
Also creating basic routing of flask with local server
First we imported the Flask class. An instance of this class will be our WSGI application.
Next we create an instance of this class. The first argument is the name of the application’s module or package. __name__ is a convenient shortcut for this that is appropriate for most cases. This is needed so that Flask knows where to look for resources such as templates and static files.
We then use the route() decorator to tell Flask what URL should trigger our function.
The function returns the message we want to display in the user’s browser. The default content type is HTML, so HTML in the string will be rendered by the browser.
we’ll create a simple app and start our server just to make sure things are setup right