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']}.

Ice Cream Machine

10min
  -  
Easy  
  -  
CODE

Python Iteration Lists Public

Implement the IceCreamMachine's scoops method so that it returns all combinations of one ingredient and one topping. If there are no ingredients or toppings, the method should return an empty list.

For example, IceCreamMachine(["vanilla", "chocolate"], ["chocolate sauce"]).scoops() should return [['vanilla', 'chocolate sauce'], ['chocolate', 'chocolate sauce']].

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.

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, Reward Points, Tuple Slice, Unique Numbers, Username, Language Teacher, Book Sale
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