Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 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

-----------------------------------------------------------------------------------------

.

About Ford Motor Company

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

  1. Lead project planning and implementation
  2. Facilitate the concept of project scope, objectives, and milestones
  3. Identify tasks for the project and resource demands
  4. Create full-scale project plans
  5. build and coordinate project staff
  6. handle project budget
  7. Present project progress reports, problems and solutions
  8. execute and handle project changes and treatments to accomplish project outputs
  9. 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

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 = "

"

tabledata += "

"

tabledata += "

"

tabledata += "

"

tabledata += "

"

tabledata += "

DateHoliday
Jan 1 New Years Day
May 26 Memorial Day
Oct 31 Halloween
"

return tabledata

def popHead():

headData = " "

headData +=" "

headData +="Flask Shop"

headData +=""

headData +=""

headData +=""

return headData

def getStyle():

myStyle = "table,td {"

myStyle += "border: 5px solid #117;"

myStyle += "}"

return myStyle

def popEnd():

endData = ""

endData += ""

return endData

host = '0.0.0.0' # '0.0.0.0' #"127.0.0.1"

if __name__ == '__main__':

app.debug = True

port = int(os.environ.get("PORT", 8080))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

The effect of neurotransmitters may be..........?

Answered: 1 week ago

Question

Where was the declaration of independence signed?

Answered: 1 week ago