Skip to content

Python Developer interview questions

Core Python, OOP, data structures, web frameworks, async, testing and performance.

198 questions · 7 topics · 14 free answers

Python Developer roadmap4 stages from basics to interview-ready. Learn the gaps, then come back and practise.

0 of 198 practised · 0 bookmarked · saved on this device

17 questions match

Testing and quality
  1. #1What is the purpose of a test assertion?EasyConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  2. #2What is test-driven development?MediumConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  3. #3How do you test a function that writes to a file?MediumScenarioTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  4. #4How would you test that an exception is raised with the right message?HardScenarioTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  5. #5What is the difference between unit and integration tests?EasyConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  6. #6How do you write a test in pytest?EasyConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  7. #7What is a fixture in pytest?EasyConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  8. #8What does mocking mean and when should you avoid it?MediumConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  9. #9What does pytest.mark.parametrize do?MediumConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  10. #10What is test coverage and its limits?MediumConceptTesting and quality Pro answer

    This answer is part of Pro

    10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

Hunting for a Python Developer role too? See open Python Developer jobs.