list comprehension - print all odd numbers in the range 1 to 9.
Python Software Engineer Interview Questions
6,393 python software engineer interview questions shared by candidates
Change a column value at any given row in a dataframe
Implement unit testing in python with a test case of your choice.
Palindrome, Fibonacci, Anagrams, Oops Concept
1. program to print prime numbers 2.program to explain anonymous function 3.programs on file input and output 4.explain about classes 5.string operations
Previous experience, why Picnic, easy/medium algorithm problems, underspecified pointless business problem.
2.What is list comprehension?How it works?
Why do you want to work for us?
Make values as keys in dict. Design async/parallel data processing system. If you win 1mln $ how will you spend it.
Python Basics: List vs. tuple vs. set vs. dictionary – differences and use cases. Mutable vs. immutable objects with examples. How does garbage collection work in Python? Explain *args and **kwargs. What are decorators? Write an example. How do __init__ and __new__ differ? What are Python generators? Yield vs. return. OOP & Design Patterns: Explain inheritance, polymorphism, and encapsulation. What is method overriding vs. method overloading? What’s a metaclass? When would you use it? Singleton pattern – how to implement it in Python? Algorithms & Data Structures: Reverse a string/list in place. Find duplicates in a list/array. Check if two strings are anagrams. Explain time complexity (Big-O) of common operations. Frameworks & Libraries: Django vs. Flask – key differences. How do Django models work with databases? What is middleware in Django/Flask? Async vs. sync code – when to use each? Databases: SQL vs. NoSQL – pros and cons. How to optimize a slow SQL query? What are indexes, and when should you use them? Experience with ORMs (Django ORM, SQLAlchemy). Testing & Debugging: How do you write unit tests? (unittest/pytest) What’s mocking, and why is it useful? How would you debug a memory leak? System Design: Design a REST API for a blog. How would you handle high traffic on an API? Explain caching strategies (Redis, Memcached). DevOps & Tools: Git workflow – branching, merging, rebasing. What’s CI/CD? How have you used it? Docker basics – what’s a container vs. an image?
Viewing 6291 - 6300 interview questions