Question
I am trying to find out how to use the HTML code found below in Python programming language. I would like to use it in
I am trying to find out how to use the HTML code found below in Python programming language. I would like to use it in the same format that is used in the Python code found below the HTML code. The goal is to use this HTML code in Python WITHOUT using a template file. Simply using the Python code and not having to call the HTML document from a template file all using FLASK. I would like to see a step by step outline of how this is done. I am having problems understanding the flow of this work. A simple example of how this would be done would work fine. I provided the code that was developed below as examples of what I am working with.
HTML code
-----------------------------------------------------------------------------------------
.
Life of project manager in the Company
Introduction
The project manager is the individual responsible for running the project from its beginnings to its execution. This involves the planning, implementation, and management of staff, resources and scope of the project. Project managers should have the discipline to set clear and attainable goals and to assure that they are completed successfully. The Project Manager shall have full accountability and power to finish the allocated project.
Responsibilities of project manager
- Lead project planning and implementation
- Facilitate the concept of project scope, objectives, and milestones
- Identify tasks for the project and resource demands
- Create full-scale project plans
- build and coordinate project staff
- handle project budget
- Present project progress reports, problems and solutions
- execute and handle project changes and treatments to accomplish project outputs
- project examinations and evaluation of results
Different Positions of project manager
- Project Leader
- Program Manager
- Program/Project Director
- Head of Program/Project
- Manager of Project Managers
- Chief Project Officer
- Project Portfolio Manager
- Project Portfolio Office Executive
- Program Management Office Executive
Know more about project manager here
Link 1: About project manager
Link 2: Responsibilities of project manager
Link 3: Project Manager Titles
Current date and time
var d = new Date();
document.getElementById("demo").innerHTML = d;
PYTHON CODE
----------------------------------------------------------------------------------------------------------
import os
app = F..;@app.route("/")
@app.route('/moreHTML')
def helloIndex():
myReply = popHead();
myReply += popH1('Welcome to SDEV 300 - The Web App!')
myReply += "
"myReply += popTable()
myReply += popEnd()
return myReply
def popH1(myString):
newString = '
' + myString + '
'return newString
def popTable():
tabledata = "
Date | Holiday |
---|---|
Jan 1 | New Years Day |
May 26 | Memorial Day |
Oct 31 | Halloween |
return tabledata
def popHead():
headData = " "
headData +="
"headData +="
headData +=""
headData +=""
headData +="
"return headData
def getStyle():
myStyle = "table,td {"
myStyle += "border: 5px solid #117;"
myStyle += "}"
return myStyle
def popEnd():
endData = ""
endData += "