๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ data-structures-python
Python Data Structures with Primitive & Non-Primitive Examples | DataCamp
April 6, 2023 - Non-primitive types are the sophisticated members of the data structure family. They don't just store a value, but rather a collection of values in various formats. In the traditional computer science world, the non-primitive data structures are divided into: ... First off, arrays in Python are a compact way of collecting basic data types, all the entries in an array must be of the same data type.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ primitive vs non primitive values in python
r/learnpython on Reddit: Primitive VS Non Primitive values in python
September 10, 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

Discussions

Primitive VS Non Primitive values in python

There is no such thing as a primitive value in Python, and there's no such thing as a reference. This explains it better than I can.

More on reddit.com
๐ŸŒ r/learnpython
15
6
September 10, 2017
What is the reasons and the benefit of non-primitive data in Java?
so I can do this concisely: foreach Student s in MyProgrammingClass s.fail; More on reddit.com
๐ŸŒ r/learnprogramming
5
1
September 7, 2021
Why does python sets are not random when there are consecutive numbers or only have values of a single data type, but random with irregular values and data types?
What do you mean random or not random? Sets are unordered so the order might be random, but membership checking is never random. More on reddit.com
๐ŸŒ r/datascience
3
0
May 27, 2023
Python Primitive Data Types?
Yes, they call them built-in types. Here's the documentation on it: https://docs.python.org/3/library/stdtypes.html Lists and tuples are "Sequence types", while dicts are "Mapping types" More on reddit.com
๐ŸŒ r/learnprogramming
5
6
December 3, 2016
๐ŸŒ
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
๐ŸŒ
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 - Primitive data types are the basic building blocks in Python. They store single values and are immutable, meaning their values cannot be changed after creation. ... 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.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_datatypes.asp
Python Data Types
Python Functions Python Arguments Python *args / **kwargs Python Scope Python Decorators Python Lambda Python Recursion Python Generators Code Challenge Python Range ... Matplotlib Intro Matplotlib Get Started Matplotlib Pyplot Matplotlib Plotting Matplotlib Markers Matplotlib Line Matplotlib Labels Matplotlib Grid Matplotlib Subplot Matplotlib Scatter Matplotlib Bars Matplotlib Histograms Matplotlib Pie Charts ยท Getting Started Mean Median Mode Standard Deviation Percentile Data Distribution Normal Data Distribution Scatter Plot Linear Regression Polynomial Regression Multiple Regression Scale Train/Test Decision Tree Confusion Matrix Hierarchical Clustering Logistic Regression Grid Search Categorical Data K-means Bootstrap Aggregation Cross Validation AUC - ROC Curve K-nearest neighbors
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ library โ€บ stdtypes.html
Built-in Types โ€” Python 3.14.3 documentation
4 days ago - The <, <=, > and >= operators are only defined where they make sense; for example, they raise a TypeError exception when one of the arguments is a complex number. Non-identical instances of a class normally compare as non-equal unless the class ...
๐ŸŒ
Coding Dojo
codingdojo.com โ€บ blog โ€บ top-python-data-structures
Top 3 Python Data Structures Explained - Coding Dojo
May 30, 2022 - 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.
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ library โ€บ functions.html
Built-in Functions โ€” Python 3.14.3 documentation
4 days ago - Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as (a // b, a % b).
Find elsewhere
๐ŸŒ
Medium
medium.com โ€บ @priyanshishukla250604 โ€บ understanding-data-types-in-python-0c8e8ee96fde
Understanding Data Types in Python | by Priyanshishukla | Medium
November 16, 2024 - Non-primitive data types are user-defined data types that are created using primitive data types.
๐ŸŒ
Real Python
realpython.com โ€บ python-data-types
Basic Data Types in Python: A Quick Exploration โ€“ Real Python
December 21, 2024 - Python data types are fundamental to the language, enabling you to represent various kinds of data. You use basic data types like int, float, and complex for numbers, str for text, bytes and bytearray for binary data, and bool for Boolean values.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ data-types-in-python
Data Types in Python
Python makes it easy to work with these numbers using the j suffix for the imaginary part. complex_num = 2 + 3j # A complex number with real part 2 and imaginary part 3 ... Collection data types in Python allow you to store multiple items in a single variable.
๐ŸŒ
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 ...
๐ŸŒ
Ccilearning
store.ccilearning.com โ€บ wp-content โ€บ uploads โ€บ 2023 โ€บ 04 โ€บ 8510-Python-Level-1-Unit-Lesson-Sample.pdf pdf
Unit 2: Python Non- Primitive Data Structures
Displays the data type of variable var_F which is float. print(var_S + var_F) Adds the value of var_S and the value of var_F and displays the ยท addition result. Sample Only ยท Lesson 1: Objects and Data Structures ยท Unit 2: Python Non-Primitive Data Structures ยท 40 ยท 8510-1 v1.00 @ CCI Learning Solutions Inc.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-data-types
Python Data Types - GeeksforGeeks
Python Boolean Data type is one of the two built-in values, True or False. Boolean objects that are equal to True are truthy (true) and those equal to False are falsy (false). However non-Boolean objects can be evaluated in a Boolean context as well and determined to be true or false.
Published ย  October 15, 2025
๐ŸŒ
Pierian Training
pieriantraining.com โ€บ home โ€บ primitive data types in python
Primitive Data Types in Python | Data Structures in Python
April 27, 2023 - In this blog post, we will delve into an explanation of what primitive data types are and their importance in programming. Specifically, weโ€™ll explore Pythonโ€™s implementation of these essential building blocks and how you can use them in your own code to create powerful applications.
๐ŸŒ
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.
๐ŸŒ
NxtWave
ccbp.in โ€บ blog โ€บ articles โ€บ difference-between-primitive-and-non-primitive-data-structure
Difference Between Primitive and Non-Primitive Data Structure
This allows for flexibility but uses more memory than languages that contain true kinds of primitives specific to those types. Dynamic Typing: Python is dynamically typed, so variables can change type at runtime and do not require explicit type declarations. Rich Built-in Collections: Python includes built-in data collecting tools such as lists, dictionaries, sets, and tuples, which are all non-primitive and quite versatile.
๐ŸŒ
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.
๐ŸŒ
Prepbytes
blog.prepbytes.com โ€บ python-data-types
Python Data Types: Uses and Examples
November 29, 2022 - Learn software, creative, and programming skills to achieve your personal and professional goals. Join at Prepbytes to get access to everything related to coding and to thousands of courses.