Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi so for Python Flask Web Server you can do def index(): return 'hello' # to return data in string You can also do def
Hi so for Python Flask Web Server you can do
def index(): return 'hello' #to return data in string You can also do def index(): return render_template("doc.html") #to return html formatting
I wanted to know what would be the def to save data, or show live data if possible. And also what is the def to read a .txt text file and return that to the server.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started