๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ primitive vs non primitive values in python
r/learnpython on Reddit: Primitive VS Non Primitive values in python
September 11, 2017 -

I learned that int, string, float, boolean are primitive and array, list, tuple, dict, set, file are non primitive..

Now i'm particularity interested in the actual differences between the two...

I know from learning java that in primitive type, it copy the actual value and therefore changing one value won't change a different variable even if they were used the same root var..

Non primitive however, only use references and therefore changing one value will change in all the vars that store the same reference...

What else am i missing regarding primitive vs non primitive data types?

Thanks

๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ primitive-data-types-vs-non-primitive-data-types-in-python
Primitive Data Types vs Non Primitive Data Types in Python - GeeksforGeeks
October 28, 2025 - ... x = 10 y = 10.5 is_active = True name = "Alice" print(type(x)) print(type(y)) print(type(is_active)) print(type(name)) ... Non-primitive data types can store multiple values or complex structures.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 70954918 โ€บ what-are-primative-and-non-primative-data-types-in-python
What are Primative and Non-Primative data types in Python? - Stack Overflow
Google said: primitive data types include Integers, Float, Strings and Boolean, the non-primitive data types are Array, List, Tuples, Dictionary, Sets and Files ยท But Google also said that Python don't have such thing called Primative or Non ...
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ data-structures-python
Python Data Structures with Primitive & Non-Primitive Examples | DataCamp
April 6, 2023 - The former are the simplest forms of representing data, whereas the latter are more advanced: they contain primitive data structures within more complex data structures for special purposes. These are the most primitive or basic data structures. They are the building blocks for data manipulation ...
๐ŸŒ
Coding Dojo
codingdojo.com โ€บ blog โ€บ top-python-data-structures
Top 3 Python Data Structures Explained - Coding Dojo
May 30, 2022 - Non-primitive Data Structures โ€“ These data structures store values, as well as a collection of values, in varying formats. The four built-in non-primitive data structures are lists, tuples, dictionaries, and sets. For a deeper dive into the core semantics and syntax of Python, check out the official Python Language Reference.
๐ŸŒ
Geekedu
geekedu.org โ€บ blogs โ€บ data-structures-in-python-everything-you-need-to-know
Data Structures in Python: Everything you need to know! | Coding for Kids Free
Non-primitive data types include List, Array, Tuples, Dictionary, Sets, and Files, while primitive data types include Integers, Float, Strings, and Boolean. In Python, there is another type of data structure called user-defined which is basically ...
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ data-types-in-python
Data Types in Python
In the same way, when coding, we encounter different types of data. Python uses labels, known as data types, to identify and handle the kind of data itโ€™s dealing with. Sometimes, we specify the data type by using specific syntax when storing a value.
๐ŸŒ
NxtWave
ccbp.in โ€บ blog โ€บ articles โ€บ difference-between-primitive-and-non-primitive-data-structure
Difference Between Primitive and Non-Primitive Data Structure
Non-primitive tells you how data is structured and managed. Keep practicing examples using both; this clarity will reflect directly in your coding logic, interviews, and problem-solving skills. ... Operations on primitive data structures include basic arithmetic operations, assignment, comparison, and logical operations, depending on the type (e.g., addition for integers, comparison for booleans). In the Python programming language, primitive data structures such as integers, strings, and booleans are built-in types used to store single values...
๐ŸŒ
Topcoder
topcoder.com โ€บ thrive โ€บ articles โ€บ data-structures-and-algorithms-in-python
Data Structures and Algorithms in Python
Since integers are a type of data structure in Python, it returns true. These exist so that data structures can become more organized as they grow larger. As a program becomes more complex, there becomes a pressing need to group various kinds of primitive data types so that code does not become too clumsy. It is for this reason that the non-primitive data types were designed.
Find elsewhere
๐ŸŒ
Medium
muditmathur121.medium.com โ€บ day-14-python-data-structure-7b109a7a9132
Day 14 Python Data Structure. ๐Ÿ“‘ TABLE OF CONTENTS ๐Ÿ“‘ 1. Data Type ๐Ÿ“โ€ฆ | by Mudit Mathur | Medium
August 1, 2023 - In Python, primitive data structures are basic data types that are built into the language itself. These include integers, floats, boolean, and characters. They are simple and immutable, meaning their values cannot be changed once assigned.
๐ŸŒ
Medium
medium.com โ€บ @priyanshishukla250604 โ€บ understanding-data-types-in-python-0c8e8ee96fde
Understanding Data Types in Python | by Priyanshishukla | Medium
November 16, 2024 - Data types determine how data is stored, manipulated, and interacted with in a program. In Python, data types are broadly classified into two categories: primitive (or built-in) and non-primitive (or user-defined).
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ python data types primitive or object?
r/learnpython on Reddit: Python Data Types Primitive or Object?
March 9, 2024 -

Could someone tell whether the following is correct?

According to Launch School's 'Introduction to Programming with Python' book: integers, floats, boolean, and strings are primitives and everything else is non-primitive. But I learnt elsewhere that they are indeed Objects and they have state (value) and functionality.

So who's correct?

I have provided with a link for that chapter if you're interested.

Source - https://launchschool.com/books/python/read/data_types#datatypes

Thanks Folks :)

๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ difference between primitive and non primitive data structure
Difference Between Primitive and Non Primitive Data Structure - Scaler Topics
March 31, 2024 - Let us understand primitive data structure with an example. A variable with the data type integer can allow storing the values of integer type only, a variable with the float data type can allow storing the values of float data type and the variable with the character data type allows storing character values only. The non-primitive data structure is further classified into two parts i.e.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ primitive-vs-non-primitive-data-structure
Primitive vs non-primitive data structure | What's the difference? - javatpoint
Primitive vs non-primitive data structure with Introduction, Asymptotic Analysis, Array, Pointer, Structure, Singly Linked List, Doubly Linked List, Graph, Tree, B Tree, B+ Tree, Avl Tree etc.
๐ŸŒ
Pierian Training
pieriantraining.com โ€บ home โ€บ primitive data types in python
Primitive Data Types in Python | Data Structures in Python
April 27, 2023 - Additionally it can also be used ... pipelines where missing fields are expected/acceptable! In summary, primitive data types in Python are building blocks ......
๐ŸŒ
Quora
quora.com โ€บ Does-Python-have-primitive-types
Does Python have primitive types? - Quora
Answer (1 of 3): Question, as answered: Does Python have primitive types? Not exactly. The Python interpreter implements objects including for integers, floating point numbers, strings and byte arrays. There is no separate โ€œcharacterโ€ type built into Python; character is simply a string of only ...
๐ŸŒ
Web Design Booth
webdesignbooth.com โ€บ primitive-data-types-in-python
Unlock The Secrets Of Primitive Data Types In Python Today!
2 weeks ago - Primitive type assignments create completely independent values, while non-primitive assignments often share references. This behavior can lead to unexpected results if developers donโ€™t understand the underlying mechanics.
๐ŸŒ
TheLinuxCode
thelinuxcode.com โ€บ home โ€บ primitive vs non-primitive data types in python: a practical mental model
Primitive vs Non-Primitive Data Types in Python: A Practical Mental Model โ€“ TheLinuxCode
January 10, 2026 - Python treats everything as an object, and its built-in type system does not stamp a label that says โ€œprimitiveโ€ or โ€œnon-primitive.โ€ Yet the split is useful because it maps to how data behaves under mutation and sharing. Primitive types are single values that never change once created.
๐ŸŒ
Quora
quora.com โ€บ Is-string-a-primitive-or-non-primitive-data-type-in-Python
Is 'string' a primitive or non-primitive data type in Python? - Quora
Answer (1 of 3): Since strings in Python are of type โ€˜strโ€™ and โ€˜strโ€™ is a class Iโ€™d say non-primitive. Correction: But, officially, as Tony points out, the str data type is, just like booleans, ints and floats is considered a primitive (atomic) data type because itโ€™s values are immutable.
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ data structures & algorithms in python: everything you need to know in 2026
Data Structures & Algorithms in Python | Complete Guide 2026
November 7, 2025 - In Python, data structures are everywhere, from simple lists to complex trees and graphs. Each type of structure has a specific purpose depending on the problem youโ€™re solving.