TORONTO KIDS COMPUTER CLUB | PMCA Saturday 18:30 Python Homework 21.09.25.
19946
post-template-default,single,single-post,postid-19946,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.1,vc_responsive

PMCA Saturday 18:30 Python Homework 21.09.25.

28 Sep PMCA Saturday 18:30 Python Homework 21.09.25.

Question:
Create a new flask application which has the below routes

  • Add route GET /divide wherein take the two numbers and return the division of those two numbers. If the number entered in the get parameters are not number, return a message saying “Invalid input”
  • Add route GET /random return a list containing 10 random numbers. Make sure at each request the numbers that are returned are random
No Comments

Sorry, the comment form is closed at this time.