Python Interview Questions
Questions Answers Views Company eMail

Describe how exceptions are handled in python.

1 1968

What is used to create Unicode string in Python?

1 2070

When to use list vs. tuple vs. dictionary vs. set?

1 2075

Explain the disadvantages of python

1 2025

What are Python decorators?

1 1834

What are the ways to write a function using call by reference?

1 1882

What are the commands that are used to copy an object in Python?

1 3448

What is the difference between deep and shallow copy?

1 2042

Write a program to find out the name of an object in python.

1 1991

How can the ternary operators be used in python?

1 1908

How the string does get converted to a number?

1 1896

What is the function of negative index?

1 2066

Write a program to check whether the object is of a class or its subclass.

1 2627

Why does delegation performed in Python?

1 2591

What is the function of “self”?

Symphony,

1 2238


Post New Python Questions

Un-Answered Questions { Python }

Tell me why and when do you use generators in python?

470


Why is python so slow?

464


Do arrays start at 0 in python?

434


How do you alphabetize a list in python?

452


Are methods and constructors the same thing?

474






Tell me how do you debug a program in python? Is it possible to step through python code?

448


What are python modules? Name some commonly used built-in modules in python?

477


Does every class need a constructor?

453


What is the output of print str * 2 if str = 'hello world!'?

1445


What are magic methods in python?

492


How is exception handling done in python?

471


What is map () in python?

448


How to convert bytes to a string?

475


What is list comprehension and dictionary comprehension and why we use it?

516


Explain help() and dir() functions in python?

462