AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
All skill tests

Python · Basic skill test

Python (Basic)

Core Python: the syntax, the types, the standard data structures and how code actually behaves when it runs — then one problem to solve in Python.

Pass at 60%Distinction at 85%Proctored · full screenNo negative markingCode in PythonValid 2 years

Quick answer

What does the Python (Basic) skill test check?

Whether you can read and write everyday Python 3 precisely: numbers and operators, truthiness, loops, strings, lists and tuples, dictionaries and sets, functions and their arguments, comprehensions, simple classes and exceptions. Most questions show a short script and ask what it prints or which error it raises; then you solve an easy coding problem in Python.

The sitting

60% pass85%0100

60%

to pass

1h

total time

26

questions

7 days

to retake

Start the test

The clock starts as soon as you click. Every sitting draws a fresh paper.

Proctored sitting

  • Laptop or desktop only, with a webcam. Phones and tablets can't start a test.
  • The test runs full screen, with the site's navigation hidden.
  • Your webcam stays on and is checked on your computer — nothing is recorded or uploaded.
  • Leaving full screen, switching tab or window or minimising blurs the paper — and so does the camera seeing no one, someone else, a phone, or you looking away. The clock keeps running.
  • Each is a warning; the third ends the sitting, graded as not passed.
  • Pasting, copying, right-click and printing are off.

The paper

2 sections, sat in order, each on its own clock — 1h in all.

1

Concepts

25 Q · 25 marks

30 min

One mark a question, no negative marking. Many questions show a program and ask what it prints. A few ask you to select every correct option, and only the exact set scores.

2

Coding

1 problem · 15 marks

30 min

Write each solution in Python. Run checks the visible cases; Submit runs every hidden case and your best submission per problem is what counts, with partial credit for each case passed.

What it covers

Every paper takes its share from each of these 9 topics, so no two sittings lean the same way.

  1. 01

  2. 02

  3. 03

  4. 04

  5. 05

    Dictionaries & sets

    Practise: Python study plan
  6. 06

    Functions & arguments

    Practise: Python study plan
  7. 07

  8. 08

  9. 09

    Comprehensions & generators

    Practise: Python study plan

Python is quick to start writing and surprisingly easy to misread. Code that runs without an error can still do something other than what its author meant, and someone who has only ever run their own scripts may never have had to say, in advance, what a line will do. The Python (Basic) test asks you to say it. It is meant for someone a few months into the language, after an introductory course, a first scripting or data project, or a run of practice problems, and it certifies that you can predict what ordinary Python does and write a small, correct function in it.

Most questions are short scripts followed by a handful of possible outputs. Others ask which error a line raises, which expressions are true, or which of several snippets is valid Python, and a few ask you to select every correct option, which scores only when the set is exact. After the multiple-choice questions comes an easy problem from the coding catalogue, solved in Python.

What you should be able to do

The questions cover nine topics in balance, so every sitting asks about each. The Python study plan teaches all of them in its early modules, from values and operators through to errors and exceptions.

  • Types and operators. Say what int, float, bool and str values do in arithmetic and comparisons: true division and floor division, operator precedence, truthiness, and the difference between == and is.
  • Control flow. Trace if/elif chains and for and while loops by hand, with break, continue, range and enumerate, and count exactly how many times a body runs.
  • Strings. Index and slice, use the common methods such as split, join, strip, replace and find, format with f-strings, and remember that every string method returns a new string.
  • Lists and tuples. Tell the methods that change a list from the ones that return something new, slice and copy, build nested lists, and unpack tuples.
  • Dictionaries and sets. Look up keys with and without a default, iterate in the right order, count with a dictionary, know what may be a key, and use the set operations.
  • Functions. Positional, keyword and default arguments, *args, return values, and what happens to a list that is passed into a function.
  • Comprehensions. List, dict and set comprehensions with filters and conditional expressions, and what a generator expression produces.
  • Classes and objects. __init__, self, methods, instance and class attributes, and __str__.
  • Exceptions. try, except, else and finally, the common built-in exceptions and which operation raises which, and raising your own with a message.

Solving the coding problem in Python

The coding problem is one of the catalogue's easy problems, like those under Strings, Arrays, Hash Table and Counting. You get a function to complete, with type hints that say what comes in and what to return, for example def longestRun(nums: List[int]) -> int:. Function names follow the catalogue's camelCase even in Python, and List is imported for you when the signature uses it. The platform supplies the input and checks the value you return, so there is nothing to read or print.

Run tries your function on the visible examples. Submit runs it on thousands of hidden, generated inputs and gives credit for each one it passes, so think about the inputs the examples do not show: a list of one element, repeated values, negative numbers, a string with nothing to find. Pasting is switched off, which means the idioms you rely on, such as enumerate, zip, sorted with a key, dict.get and collections.Counter, need to be ones you can type correctly from memory.

Most easy problems turn on one idea used carefully. The roadmap lessons on strings, arrays and hashing explain the common ones with Python code beside the other languages.

A study route

  1. Start with the modules of the Python study plan for any topic above that you are unsure of. Each lesson has a short quiz and exercises that the judge checks, and the quizzes ask the same kind of question the test does.
  2. Use the interpreter as a checker, not a crutch. Type a line you are unsure of, such as print(round(2.5), round(3.5)), decide what it will print, then press Enter. When your prediction is wrong, find out why before moving on.
  3. Solve easy catalogue problems in Python with a timer running, and submit before you read the editorial. Then read the editorial anyway: it often shows a shorter way to write the same idea.
  4. Read code you did not write. The bug hunts in Python ask you to find the line that makes a working-looking program wrong, which is the reading skill the multiple-choice questions reward.

Where learners usually go wrong

  • Not knowing whether a method changes its object. For every method you use, know whether it modifies the object or returns a new value. Lists are changed in place by many of their methods; strings never are.
  • Thinking of a variable as a box. A Python variable is a name attached to an object. Two names can be attached to the same list, and attaching a name to a new object never changes the old one. Draw the names and arrows when a question passes objects around.
  • Guessing the error type. Learn the difference between TypeError (the wrong kind of value), ValueError (the right kind with a bad value), IndexError, KeyError and NameError. Questions often offer them side by side.
  • Skimming slices and ranges. A slice includes its start and excludes its stop, a negative index counts from the end, and a step can run backwards. Work them out position by position rather than by eye.

When to aim for Intermediate

Python (Intermediate) moves from what everyday code does to the rules underneath it: scope and closures, iterators and generators, decorators and context managers, the object model with inheritance and special methods, and the standard library modules a working programmer reaches for. Its coding round goes up to medium difficulty. If you write Python at work or in sizeable projects, it is the better fit; if most of your Python so far is coursework and practice problems, start here.

Python Certification Test (Basic)

A free 60-minute Python skill test at basic level. Pass with 60% to earn a verifiable CodeKairo credential and a profile frame.

  • Skill: Python
  • Level: Basic
  • Duration: 60 minutes
  • Questions: 26
  • Pass mark: 60% (distinction at 85%)
  • Credential: Verifiable, valid for 2 years

Core Python: the syntax, the types, the standard data structures and how code actually behaves when it runs — then one problem to solve in Python.

What does the Python (Basic) skill test check?

Whether you can read and write everyday Python 3 precisely: numbers and operators, truthiness, loops, strings, lists and tuples, dictionaries and sets, functions and their arguments, comprehensions, simple classes and exceptions. Most questions show a short script and ask what it prints or which error it raises; then you solve an easy coding problem in Python.

Sections

SectionQuestionsTimeKindMarks each
Concepts2530 minMultiple choice1
Coding130 minCoding15

What it covers

Python is quick to start writing and surprisingly easy to misread. Code that runs without an error can still do something other than what its author meant, and someone who has only ever run their own scripts may never have had to say, in advance, what a line will do. The Python (Basic) test asks you to say it. It is meant for someone a few months into the language, after an introductory course, a first scripting or data project, or a run of practice problems, and it certifies that you can predict what ordinary Python does and write a small, correct function in it.

Most questions are short scripts followed by a handful of possible outputs. Others ask which error a line raises, which expressions are true, or which of several snippets is valid Python, and a few ask you to select every correct option, which scores only when the set is exact. After the multiple-choice questions comes an easy problem from the coding catalogue, solved in Python.

What you should be able to do

The questions cover nine topics in balance, so every sitting asks about each. The Python study plan teaches all of them in its early modules, from values and operators through to errors and exceptions.

  • Types and operators. Say what int, float, bool and str values do in arithmetic and comparisons: true division and floor division, operator precedence, truthiness, and the difference between == and is.
  • Control flow. Trace if/elif chains and for and while loops by hand, with break, continue, range and enumerate, and count exactly how many times a body runs.
  • Strings. Index and slice, use the common methods such as split, join, strip, replace and find, format with f-strings, and remember that every string method returns a new string.
  • Lists and tuples. Tell the methods that change a list from the ones that return something new, slice and copy, build nested lists, and unpack tuples.
  • Dictionaries and sets. Look up keys with and without a default, iterate in the right order, count with a dictionary, know what may be a key, and use the set operations.
  • Functions. Positional, keyword and default arguments, *args, return values, and what happens to a list that is passed into a function.
  • Comprehensions. List, dict and set comprehensions with filters and conditional expressions, and what a generator expression produces.
  • Classes and objects. __init__, self, methods, instance and class attributes, and __str__.
  • Exceptions. try, except, else and finally, the common built-in exceptions and which operation raises which, and raising your own with a message.

Solving the coding problem in Python

The coding problem is one of the catalogue's easy problems, like those under Strings, Arrays, Hash Table and Counting. You get a function to complete, with type hints that say what comes in and what to return, for example def longestRun(nums: List[int]) -> int:. Function names follow the catalogue's camelCase even in Python, and List is imported for you when the signature uses it. The platform supplies the input and checks the value you return, so there is nothing to read or print.

Run tries your function on the visible examples. Submit runs it on thousands of hidden, generated inputs and gives credit for each one it passes, so think about the inputs the examples do not show: a list of one element, repeated values, negative numbers, a string with nothing to find. Pasting is switched off, which means the idioms you rely on, such as enumerate, zip, sorted with a key, dict.get and collections.Counter, need to be ones you can type correctly from memory.

Most easy problems turn on one idea used carefully. The roadmap lessons on strings, arrays and hashing explain the common ones with Python code beside the other languages.

A study route

  1. Start with the modules of the Python study plan for any topic above that you are unsure of. Each lesson has a short quiz and exercises that the judge checks, and the quizzes ask the same kind of question the test does.
  2. Use the interpreter as a checker, not a crutch. Type a line you are unsure of, such as print(round(2.5), round(3.5)), decide what it will print, then press Enter. When your prediction is wrong, find out why before moving on.
  3. Solve easy catalogue problems in Python with a timer running, and submit before you read the editorial. Then read the editorial anyway: it often shows a shorter way to write the same idea.
  4. Read code you did not write. The bug hunts in Python ask you to find the line that makes a working-looking program wrong, which is the reading skill the multiple-choice questions reward.

Where learners usually go wrong

  • Not knowing whether a method changes its object. For every method you use, know whether it modifies the object or returns a new value. Lists are changed in place by many of their methods; strings never are.
  • Thinking of a variable as a box. A Python variable is a name attached to an object. Two names can be attached to the same list, and attaching a name to a new object never changes the old one. Draw the names and arrows when a question passes objects around.
  • Guessing the error type. Learn the difference between TypeError (the wrong kind of value), ValueError (the right kind with a bad value), IndexError, KeyError and NameError. Questions often offer them side by side.
  • Skimming slices and ranges. A slice includes its start and excludes its stop, a negative index counts from the end, and a step can run backwards. Work them out position by position rather than by eye.

When to aim for Intermediate

Python (Intermediate) moves from what everyday code does to the rules underneath it: scope and closures, iterators and generators, decorators and context managers, the object model with inheritance and special methods, and the standard library modules a working programmer reaches for. Its coding round goes up to medium difficulty. If you write Python at work or in sizeable projects, it is the better fit; if most of your Python so far is coursework and practice problems, start here.

Sample question

Topic: Strings

What does this program print?

name = "tutorial.txt"
print(name.strip(".txt"), name.rstrip(".txt"))
  1. tutorial tutorial
  2. utorial tutorial
  3. uorial uorial
  4. tutorial.txt tutorial
Show the answer

B. utorial tutorial

The argument to strip is a set of characters, not a prefix or suffix: it removes any of ., t and x from both ends until it meets a character outside the set. At the right end that takes off .txt; at the left it also takes the first t, leaving utorial. rstrip works on the right end only, so the leading t survives. Characters in the middle are never touched. To remove an exact suffix, check name.endswith(".txt") and slice it off.

Common questions

Does the Python Basic test include classes?

Yes, at the level of a first course: defining a class with __init__, what self is, instance attributes versus class attributes, and __str__. Inheritance hierarchies, super(), properties and the rest of the object model are examined in Python (Intermediate).

Which Python version do the questions assume?

Python 3, as any release from 3.8 onward runs it. Nothing relies on Python 2 behaviour, and nothing needs a feature added after 3.8, so you will not meet match statements or other recent syntax.

Do I need libraries such as NumPy or pandas?

No. The questions use only the built-in types and functions. In the coding round you may import from the standard library, for example collections or math, but no problem needs a third-party package.

I learned another language before Python. What should I watch for?

The places where Python's rules differ from Java, C or JavaScript: and and or return one of their operands rather than True or False, for loops over items rather than indexes, a slice excludes its end, and indentation is part of the syntax. Habits from another language give confident wrong answers exactly there.

Rules

This is a certification test. Pass with 60% and you earn a verifiable CodeKairo credential — 85% earns it with distinction. It is valid for 2 years.

  • The sections are timed separately and taken in order. A section you leave cannot be reopened.
  • The server keeps the clock. Closing the tab or reloading does not pause it.
  • Your answers save as you go and survive a refresh.
  • The coding section must be answered in Python. Run checks the visible cases; Submit runs every hidden case.
  • You may sit this test again 7 days after a sitting ends. Your best result stands.

Integrity. Work alone and from what you know, on a laptop or desktop with a webcam — phones and tablets cannot sit a skill test. The test runs full screen and must stay in front the whole time, and the webcam must see you, alone: leaving full screen, switching to another tab or window, minimising, or the camera seeing no one, someone else, a phone or you looking away blurs the paper and counts against you — the first 2 are warnings, and the third ends the sitting, graded as not passed. The camera check runs in your browser; nothing is recorded or uploaded. Pasting into the editor is switched off. A sitting that looks assisted can be reviewed, and a credential earned that way is revoked.

The answers are never shown — not during the test and not after it. Your result breaks the score down by topic and points you to what to practise.