check tooltips - try moving the mouse over the code to get the tooltips:
name = "Professor Nicholas Duchon"  Your name here! 

# file: flask010.py Header Information 
# date: Jun 2, 2020
# purpose: basic flask file with 3 pages
#   includes name and time stamps


# time: Getting the time 
import time
def curtime () :
  return time.asctime(time.localtime(time.time()))


def strEnd () : creating the time at page end string 
  return "<hr>Time: " + curtime ()


# File: flask010.py Starting and instantiating flask
from flask import Flask
app = Flask (__name__)


strlinks = """
<ul>
<li><a href=/>link to /</a>
<li><a href=a>link to a</a> A series of links to the html pages 
<li><a href=b>link to b</a>
</ul>
"""


@app.route ("/") Tell Flask to go here in response to address http://x.x.x.x:8080/ 

def reply () : The function Flask will call to respond to the URL request, will return an HTML string to the calling browser 

  str  = strlinks All pages will start with this string - links to all three pages in this example 

  str += "\n<P>Page /" Putting the string together 
  str += "<h1>This is a simple web page - 001</h1>"
  str += "<h2>" + name + "</h2>"
  str += "<h3>more stuff</h3>"
  str += strEnd ()
  return str


@app.route ("/a") Tell Flask to go here in response to address http://x.x.x.x:8080/a 
def replyA ():
  str  = strlinks
  str += "\n<P>Page a"
  str += "<P>Name: " + name
  str += strEnd ()
  return str
   

@app.route ("/b") Tell Flask to go here in response to address http://x.x.x.x:8080/b 
def replyB ():
  str  = strlinks
  str += "\n<P>Page b"
  str += "<P>Name: " + name
  str += "\n<P>regx example"
  str += strEnd ()
  return str
   

# see: https://flask.palletsprojects.com/en/1.1.x/api/
if __name__ == "__main__": Start Flask listening on a "public" IP address 
  app.run (host="0.0.0.0", port=8080)

End
end 2