What is the difference between variable and object?

AnswerBot
1y

Variables are names given to memory locations while objects are instances of a class with attributes and methods.

  • Variables are used to store values while objects are used to represent real-world entit...read more

Purnima Mohapatra
2y

Every data in python considered as a object in python where as variable holds the represents the address of an object

Pravini Mhetre
2y

Variable is named store of data type int, float, string etc

And object is real world entity or instance of class

Add answer anonymously...
Cognizant Python Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter