0% found this document useful (0 votes)
127 views

Famepilot Django Assignment

This document provides instructions for a coding challenge that must be completed using Python 3.6. It describes three coding tasks: 1) a group_by_owners function to group files by owner, 2) creating a Django application for user registration, login, and dashboard, and 3) a find_roots function to find the roots of a quadratic equation. The completed assignment is due by tomorrow at 6PM and should be emailed to developer@famepilot.com.

Uploaded by

add
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views

Famepilot Django Assignment

This document provides instructions for a coding challenge that must be completed using Python 3.6. It describes three coding tasks: 1) a group_by_owners function to group files by owner, 2) creating a Django application for user registration, login, and dashboard, and 3) a find_roots function to find the roots of a quadratic equation. The completed assignment is due by tomorrow at 6PM and should be emailed to developer@famepilot.com.

Uploaded by

add
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

This challenge is designed to test your Django and Python skills.

Complete the test using Python v3.6 and all code must be annotated.

Please send the solved assignment to developer@famepilot.com by tomorrow 6PM.

1. Implement a group_by_owners function that:


-- accepts a dict containing the file owner name for each file name.
-- Returns a dict containig a list of file names for each owner name, in any order.

For eg: {
'Input.txt': 'Randy',
'Code.py': 'Stan',
'Output.txt': 'Randy'
}
the group_by_owners function should return {“randy”: [“input.txt”, “output.txt”], “stan”: [“code.py”]}

2. create a django application having the functionality of register, login and logout and dashboard screen
having profile information (name, email, date of birth, phone number). Connect the app with postgresql
database. Note: use serializer for filling up the information.

3. Implement the function find_roots to find the roots of the quadratic equation: ax2 + bx + c = 0. The
function should return a tuple containing roots in any order. If the equation has only one solution, the
function should return that solution as both elements of the tuple. The equation will always have at least one
solution.

The roots of the quadratic equation can be found with the following formula:

For example, find_roots(2, 10, 8) should return (-1, -4) or (-4, -1) as the roots of the equation 2x2 + 10x + 8
= 0 are -1 and -4.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy