General questions about Python, standards, PEP 8, architecture in the cloud, and so on.
Python Interview Questions
6,412 python interview questions shared by candidates
Some virtualization concepts - what's a hypervisor and so on
Depth of an element in a BST
Why you decided to be involved?
What is your understanding of the GIL?
Thanks for applying to our position. To further analyze your skills in Python, I would like for you to analyze the below code and answer the questions, def advert_match_geo(advert, country_id): if advert.countries: if advert.geo_setting == 'Include': matching_countries = tuple(filter(lambda x: not x or x == country_id, advert.countries)) if advert.geo_setting == 'Include' and not matching_countries: return False elif advert.geo_setting == 'Exclude': matching_countries = tuple(filter(lambda x: x == country_id, advert.countries)) if advert.geo_setting == 'Exclude' and matching_countries: return False return True Q: What does this code do? Q: Is this code syntactically valid? Q: What is wrong with the algorithmic structure of this code? Q: Assume that this function is called frequently with similar inputs. Is this function a good candidate for caching / memorization?
Panel 1 questions range on sorting, dictionaries in python, runtime complexity of O(1), min, max, defaultdict, sets.
Third panel asked about javascript, get & post request, IDE's, Linux versions used, shell commands etc
Ex: 1.how to find the duplicate values in list.
3. Largest number of the list without using built in function. Some difficult questions were also there
Viewing 3221 - 3230 interview questions