What is different between class and object?
Answer / Ranjana Kumari
A class in Python is a blueprint or template that defines the structure of an object. It contains functions (methods) and variables (attributes). An object is an instance of a class, created by calling the class name followed by parentheses. Each object has its own unique attributes and methods, and it inherits characteristics from its class.
| Is This Answer Correct ? | 0 Yes | 0 No |
How will you use python to read a random line from a file?
Why python is fast?
Who created python?
Is python free or paid?
Explain the use of with statement?
What is the difference between del() and remove() methods of the list?
List out the different types of inheritance available in python?
What tuple means?
Can dictionary have a duplicate keys ?
Is there a switch..case statement in python?
How do I run Apache in Python?
What is meant by r strip() in python?