Interviews Questions by Career
Interviews Questions by Company
Interviews Questions by Topic
Get Started
Interview Coach 1:1
Gain the confidence you need by asking our professionals any interview scenario, question, or answer you are unsure about.
Let Us Review Your Answers
Our interviewing professionals will gladly review and revise any answer you send us. Allowing you to craft perfect responses for your next job interview.
Interview Questions by Topic
Interview Questions by Career
Interview Questions by Company

Python Interview
Questions

Job Interviews     Careers     Computer Science    

Question 1 of 30

Do you know the difference between range and xrange?

***Note: We do not have professional answers for this career***
User Answers
1000s of Interview Questions
Win your next job by practicing from our question bank. We have thousands of questions and answers created by interview experts.
Suggested
Interview Q&As
Explore expert tips and resources to be more confident in your next interview.
Behavioral
Common
Phone
Tough
Leadership
All Interview Topics
All Career Q&As
Suggested Career
Interview Q&As
Continue practicing by visiting these similar question sets
Programming Basic
Programming C
Programming C++
Programming ColdFusion
Programming Delphi

30 Python Interview Questions

1.

Do you know the difference between range and xrange?

2.

What are the rules for local and global variables in Python?

User-Submitted Answers

1.

Global variables can be overiden in scope. Local variables mostly used in particular scope.

3.

What is your greatest weakness as a programmer? What are you doing to improve it?

4.

What is shallow copy and deep copy in python?

5.

Do you know what list and dict comprehensions are? Can you give an example?

6.

Explain the dictionary in Python.

User-Submitted Answers

1.

Key value table. Like bag which contain a lot of things with particular key and value, but unsorted.

7.

Why is Python better than most programming languages?

User-Submitted Answers

1.

Y

8.

What are the different ways of passing arguments to a function in python?

9.

What is package in python?

10.

Do you use virtual environments?

11.

What are decorators and what is their usage?

12.

Do you use tabs or spaces, which ones are better?

13.

How do we share global variables across modules in Python?

14.

Tell me why you chose to study and learn Python.

15.

What don't you like about Python?

More Interview Q&As
Explore expert tips and resources to be more confident in your next interview.
Behavioral
Common
Phone
Tough
Leadership
All Interview Topics
All Career Q&As
Suggested Career
Interview Q&As
Continue practicing by visiting these similar question sets
Programming Basic
Programming C
Programming C++
Programming ColdFusion
Programming Delphi
30 Python Interview Questions
Win your next job by practicing from our question bank. We have thousands of questions and answers created by interview experts.

Interview Questions

  1. Do you know the difference between range and xrange?
  2. What are the rules for local and global variables in Python?
  3. What is your greatest weakness as a programmer? What are you doing to improve it?
  4. What is shallow copy and deep copy in python?
  5. Do you know what list and dict comprehensions are? Can you give an example?
  6. Explain the dictionary in Python.
  7. Why is Python better than most programming languages?
  8. What are the different ways of passing arguments to a function in python?
  9. What is package in python?
  10. Do you use virtual environments?
  11. What are decorators and what is their usage?
  12. Do you use tabs or spaces, which ones are better?
  13. How do we share global variables across modules in Python?
  14. Tell me why you chose to study and learn Python.
  15. What don't you like about Python?
  16. What are Python decorators and how would you use them?
  17. What is lambda in python?
  18. What is your greatest strength as a programmer?
  19. What is scope in python?
  20. What is namespace in python?
  21. What is module in python?
  22. What built-in type does python provide?
  23. Is python compiled based or interpretive based language?
  24. Do you know what is the difference between lists and tuples? Can you give me an example for their usage?
  25. Why programming?
  26. Explain how python is interpreted.
  27. What is Python? State some programming language features of Python.
  28. Tell me about all of the various uses that you've coded with by using Python.
  29. What is the most recent version of Python? How well is your knowledge in this version?
  30. Who created the Python programming language?
Disclaimer
Our interview questions and answers are created by experienced recruiters and interviewers. These questions and answers do not represent any organization, school, or company on our site. Interview questions and answer examples and any other content may be used else where on the site. We do not claim our questions will be asked in any interview you may have. Our goal is to create interview questions and answers that will best prepare you for your interview, and that means we do not want you to memorize our answers. You must create your own answers, and be prepared for any interview question in any interview.
Learn more about what we believe >
Read our Terms of Use for more information >