Blog

Blog
Blog

What is the use of __init__? When is it called? Explain with an example.

What is the use of init? When is it called? Explain with an example. Answer If Answer Not Available Please comment if you Know answer

Explain the usage of keyword ‘pass’ in class definition.

Explain the usage of keyword ‘pass’ in class definition. Answer If Answer Not Available Please comment if you Know answer

Is object of a class mutable? Why/why not?

Is object of a class mutable? Why/why not? Answer If Answer Not Available Please comment if you Know answer

Explain LEGB rule

Explain LEGB rule Answer If Answer Not Available Please comment if you Know answer

Is data of different types treated differently in Python? Support your answer with an example.

Is data of different types treated differently in Python? Support your answer with an example. Answer If Answer Not Available Please comment if you Know answer

Define a namespace. Give examples of namespaces with respect to Python.

Define a namespace. Give examples of namespaces with respect to Python. Answer If Answer Not Available Please comment if you Know answer

Write a program to find out volume of the following using function overloading

Write a program to find out volume of the following using function overloading Answer If Answer Not Available Please comment if you Know answer

Area of triangle (function with three parameters)

Area of triangle (function with three parameters) Answer If Answer Not Available Please comment if you Know answer

Area of rectangle (function with two parameters)

Area of rectangle (function with two parameters) Answer If Answer Not Available Please comment if you Know answer

Area of circle (function with one parameter)

Area of circle (function with one parameter) Answer If Answer Not Available Please comment if you Know answer