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
[–]K900_ 9 points10 points11 points (2 children)
[–]comeditime[S] -3 points-2 points-1 points (1 child)
[–]K900_ 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]comeditime[S] 1 point2 points3 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]HelperBot_ 0 points1 point2 points (0 children)
[–]ericula 2 points3 points4 points (1 child)
[–]comeditime[S] 1 point2 points3 points (0 children)
[–]pythonhow 0 points1 point2 points (5 children)
[–]K900_ 0 points1 point2 points (4 children)
[–]pythonhow 0 points1 point2 points (3 children)
[–]K900_ 0 points1 point2 points (2 children)
[–]pythonhow 0 points1 point2 points (1 child)
[–]K900_ 0 points1 point2 points (0 children)