Python Online Test

TestDome skill assessments are used by more than 5,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

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

10min
  -  
Easy 
  -  
CODE

Python Dictionary 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', 'Code.py': 'Stan', 'Output.txt': 'Randy'} the group_by_owners function should return {'Randy': ['Input.txt', 'Output.txt'], 'Stan': ['Code.py']}.

Merge Names

10min
  -  
Easy 
  -  
CODE

Python Lists 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.

Pipeline

10min
  -  
Hard 
  -  
CODE

Python Closures Higher order function 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.

Questions
Document Store, Greeter, Is Alpha, Needle, Word Count, Max Sum, Shipping, Read First Line, Read Write Execute, Log Patch, Segment, Numbers to Text, Cargo Ship, Category Tree, Chain Link, Crop Ratio, Date Transform, Veterinarian, Hobbies, Log Parser, Medical Record, Moving Total, Paragraph, Products, Book Sale, Reward Points, Tuple Slice, Unique Numbers, Username, Language Teacher
Skills
Python Bug fixing Language List comprehension Strings Stream Algorithmic thinking Arithmetic Exceptions Monkey patching Lists Tuples Dictionary Linked list Integer division Regex Queue Iteration Serialization XML Named tuple Set JSON Sorting Inheritance OOP
Score Distribution
Loading...
Pricing For Premium Questions