Question: Write a flask code snippet to perform the following tasks: 1. Perform simple math: For example, if a user visits the URL /sub/5/1 the application
Write a flask code snippet to perform the following tasks:
1. Perform simple math: For example, if a user visits the URL /sub/5/1 the application should compute 5-1 and display 5+1=4
2. Generate an array: if a user visits the URL /array/10 the application should prompt user to enter 10 values with a comma after value, stores them in the array, sorts it and displays it.
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Quiz 1 from flask import Flask rendertemplate request from datetime ... View full answer
Get step-by-step solutions from verified subject matter experts
