Flask - Ecosystem and Patterns
Which of the following is the correct way to call a service function
get_user_by_id inside a Flask route?get_user_by_id inside a Flask route?service.get_user_by_id(id) is correct.user = get_user_by_id(id) misses the service prefix, B uses invalid arrow syntax (->) for Python, C uses wrong dot notation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions