Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Python 3 Coding Assessment Test (Basic)

Useful for hiring

  • Junior level Python 3 Programmer
  • Entry level Python 3 Developer

Start hiring job-fit candidates using this assessment


"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH

You are converting code version.

In the old code, you have used "*" for pointers. But now you have to replace each "*" with a "->" and this replacement shouldn't be done inside comments. A comment is a string that starts with "//" and terminates at the end of the line.

At max 100 lines of code.
Each line of code consists of at maximum 50 characters.

Print code with the new version.

Sample Input
int t; //variable t
t*a=0;  //t*a does something
return 0;

Sample Output
int t; //variable t
t->a=0;  //t*a does something
return 0;


Test details:

The test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. For this reason, emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.
Questions : 2
Duration : 40 minutes

  • Python 3 Coding : The test contains 2 basic level coding questions on Python 3 to check programming skills of a candidate.

Test description:

This Python 3 Coding Test (Basic) is designed to assess Python 3 programming skills of a candidate.

The best way to evaluate a programmer for a job is to give him a coding test. The candidate has to write a code which uses the concepts of Python 3 and Error handling to solve the real world problems. If a programmer also writes comments for his code then he is considered a good programmer.

Using powerful reporting, you will have detailed analysis of test results to help you make better decisions and predict candidate and employee success.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates