0
Lists, tuples, dictionaries, integers, float, bool, etc. are all primitive types or composite variables are different?
0
Lists, tuples, dictionaries, integers, float, bool, etc. are all primitive types or composite variables are different?
1
By a definition are yes: What is considered primitive in a programming language?, but on the other hand.
I’m not sure how they made it official, I think they do, but a lot of the Python documentation has no correct conceptual basis, so it might be official for them, and be wrong, I think it’s right to adopt the definition that language gives special treatment, as also occurs with tuple and other types.
Okay, so in c for example it could be?
In C there are no such types.
Browser other questions tagged python typing
You are not signed in. Login or sign up in order to post.
Draw your own conclusions: https://ideone.com/3EP9B0
– hkotsubo
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site
– Maniero