The Python online test assesses candidates' knowledge of programming in the Python language and understanding of its native data structures.

It's an ideal test for pre-employment screening. A good Python developer needs to be able not only to solve problems using Python as the programming language but also be familiar with Python native data structures and language constructs.

This online test requires candidates to solve coding problems in Python as well as to find and fix bugs in a Python program.

Recommended Job Roles
Back-End Developer
Python Developer
Web Developer
Sample Candidate Report

Sample Free Questions

File Owners


Python Language Public

Implement a group_by_owners function that:

  • Accepts a dictionary containing the file owner name for each file name.
  • Returns a dictionary containing a list of file names for each owner name, in any order.

For example, for dictionary {'Input.txt': 'Randy', '': 'Stan', 'Output.txt': 'Randy'} the group_by_owners function should return {'Randy': ['Input.txt', 'Output.txt'], 'Stan': ['']}.

Merge Names


Python List Public

Implement the unique_names method. When passed two lists of names, it will return a list containing the names that appear in either or both lists. The returned list should have no duplicates.

For example, calling unique_names(['Ava', 'Emma', 'Olivia'], ['Olivia', 'Sophia', 'Emma']) should return a list containing Ava, Emma, Olivia, and Sophia in any order.



Python Closures Public

As part of a data processing pipeline, complete the implementation of the pipeline method:

  • The method should accept a variable number of functions, and it should return a new function that accepts one parameter arg.
  • The returned function should call the first function in the pipeline with the parameter arg, and call the second function with the result of the first function.
  • The returned function should continue calling each function in the pipeline in order, following the same pattern, and return the value from the last function.

For example, pipeline(lambda x: x * 3, lambda x: x + 1, lambda x: x / 2) then calling the returned function with 3 should return 5.0.

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Document Store, Crop Ratio, Programmer Teacher, Greeter, Chain Link, Is Alpha, Log Parser, Medical Record, Needle, Numbers to Text, Paragraph, Products, Username, Word Count, Entry, Unique Numbers, Max Sum, Hobbies, Tuple Slice, Reward Points, Shipping, Read First Line, Read Write Execute, Log Patch, Cargo Ship, Moving Total, Category Tree, Rare, Date Transform, Segment
Python Bug fixing Language OOP Data structures List comprehension Strings Serialization Collections Stream Sorting Algorithmic thinking Searching Iteration List Arithmetic Exceptions Monkey patching
Score Distribution
Pricing For Premium Questions