
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
Why are numbers represented as objects in python?
Everything in Python is an object, and that includes the numbers. There are no "primitive" types, only built-in types.
Numbers, however, are immutable. When you perform an operation with a number, you are creating a new number object.
- Related Articles
- Program to find numbers represented as linked lists in Python
- Program to add two numbers represented as strings in Python
- Multiply Large Numbers represented as Strings in C++
- Why are default values shared between objects in Python?
- By which letter irrational numbers are represented?
- Multiply two numbers represented as linked lists into a third list in C++
- Program to expand string represented as n(t) format in Python
- Why string objects are immutable in java?
- Count numbers which can be represented as sum of same parity primes in C++
- Sum of two numbers where one number is represented as array of digits in C++
- Are Python functions objects?
- Check if a number can be represented as a sum of 2 triangular numbers in C++
- Why are natural numbers called counting numbers?
- Find winner of an election where votes are represented as candidate names in C++
- Add two numbers represented by linked lists?

Advertisements