Types like list and str are all primitive types?

Asked

Viewed 69 times

0

Lists, tuples, dictionaries, integers, float, bool, etc. are all primitive types or composite variables are different?

  • 1

    Draw your own conclusions: https://ideone.com/3EP9B0

  • 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

1 answer

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

You are not signed in. Login or sign up in order to post.