Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways

Python Interview Questions for Data Science | 2021

Python Interview Questions for Data Science.
There has been a change in the type of questions asked in Python in the Data Science or Analyst interviews. Previously the questions were more around the libraries like Pandas and Numpy. There used to be questions around the implementation of various algorithms. But now a lot of questions are asked on the basics of Python like sorting with sort function, traverse an array, sum of right array from an index, hash map, etc.
We are looking forward to have 2-3 articles around these questions.
If you want to start from the basics of Python then do visit w3school first
Python Interview Questions for Data Science.

10 Python Questions recently asked in interviews

  1. Sum of Digits of a number.
    Ex. 243 = 2+4+3 = 9
Sum of digits in Python

2. Product of digits (Almost the same concept as above, but make sure that prod variable is initiated with 1 and while condition should be >0)

Product of digits in Python

3. Count number of even and odd numbers in a list

Number of odd and even digits in a list

4. Count number of even and odd numbers in a dictionary

Number of odd and even numbers in a dictionary

5. Create two lists of odd and even numbers from a list
Ex.
Input
L1 = [1,2,3,4,5,3,2]

Output
even = [2,4,2]
odd = [1,3,5,3]

Create list of even and numbers from one list

6. Factorial of any number

Factorial of a number in Python

7. Check if two texts are anagram

Anagram example – silent is an anagram listen

Anagram in python

8. Converted a nested list in a flat list

Convert a nested list in a flat list

9. Cube of each numbers in a list using lambda function

Cube of each numbers in a list using lambda function

10. Use lambda function with filter

Daily Quiz

Daily Quiz Day 1 Questions
Daily Quiz Day 2 Questions
Daily Quiz Day 3 Questions
Daily Quiz Day 4 Questions
Daily Quiz Day 5 Questions
Daily Quiz Day 6 Questions
Daily Quiz Day 7 Questions
Daily Quiz Day 8 Questions
Daily Quiz Day 9 Questions
Daily Quiz Day 10 Questions

Useful Link for interview Preparation

Correlation and Collinearity –https://thedatamonk.com/correlation-and-collinearity-explained-in-layman-terms/
Difference between Forecasting and Prediction – https://thedatamonk.com/what-is-the-difference-between-forecasting-and-prediction/
Explain p-value to a layman – https://thedatamonk.com/how-would-you-explain-the-concept-of-p-value-to-a-layman/
Confusion Matrix – https://thedatamonk.com/confusion-matrix-in-data-science-meaning-and-example/
Data Science vs Big Data vs Data Analysis vs Business Analyst https://thedatamonk.com/data-science-vs-big-data-vs-data-analytics-vs-business-analyst/
ETS in Layman Terms – https://thedatamonk.com/exponential-smoothing-ets-forecasting-in-layman-terms/
Deloitte Interview Questions – https://thedatamonk.com/deloitte-data-scientist-interview-questions/
Accenture Interview Questions – https://thedatamonk.com/accenture-business-analyst-interview-question/

For any help, issues, resume overview, buying books, reviewing courses, etc. You can email us at nitinkamal132@gmail.com or contact@thedatamonk.com

Python Interview Questions for Data Science

About TheDataMonkGrand Master

I am the Co-Founder of The Data Monk. I have a total of 6+ years of analytics experience 3+ years at Mu Sigma 2 years at OYO 1 year and counting at The Data Monk I am an active trader and a logically sarcastic idiot :)

Follow Me

Leave a reply