## 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

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)

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

4. Count number of even and odd 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]

6. Factorial of any number

7. Check if two texts are anagram

Anagram example – silent is an anagram listen

8. Converted a nested list in a flat list

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

10. Use lambda function with filter

Daily Quiz

## 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/