Python Interview Questions

Python Interview Questions

  1. What is tuple?
  2. What is Python?
  3. How do I delete a file?
  4. What is Python good for?
  5. Explain about repr function?
  6. How to Debugging in python?
  7. Where is Freeze for Windows?
  8. Explain about assert statement?
  9. Why are Python strings immutable?
  10. Can I create my own functions in C?
  11. How to use Cookies for Web python?
  12. How to use Sessions for Web python?
  13. How do you make an array in Python?
  14. Explain about pickling and unpickling?
  15. Can I create my own functions in C++?
  16. Is there a scanf () or sscanf () equivalent?
  17. How do I make python scripts executable?
  18. How do I get a beta test version of Python?
  19. How do you remove duplicates from a list?
  20. How do you set a global variable in a function?
  21. How do I generate random numbers in Python?
  22. How do I test a Python program or component?
  23. Does python support object oriented scripting?
  24. Where in the world is www.python.org located?
  25. Why can’t I use an assignment in an expression?
  26. Explain about the dictionary function in Python?
  27. How do I run a Python program under Windows?
  28. Explain about the programming language python?
  29. How do I iterate over a sequence in reverse order?
  30. How do I apply a method to a sequence of objects?
  31. How do I make a Python script executable on Unix?
  32. How do I access a module written in Python from C?
  33. How do you make a higher order function in Python?
  34. How can I embed Python into a Windows application?
  35. How can I mimic CGI form submission (METHOD=POST)?
  36. Is there a tool to help find bugs or perform static analysis?
  37. What are the rules for local and global variables in Python?
  38. How can I evaluate an arbitrary Python expression from C?
  39. How do I run a sub process with pipes connected to both input and output?
  40. How do I call a method defined in a base class from a derived class that overrides it?