Famepilot Django Assignment
Famepilot Django Assignment
Complete the test using Python v3.6 and all code must be annotated.
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.