The basic data type used by Python to store the array is array?list?tuple?

Asked 2 years ago, Updated 2 years ago, 22 views

Hello, I'm a newbie who started programming. I'm studying Python. As I study theory, there is a question that I am curious about the answer. It's very basic, but I don't have an answer sheet I can't figure it out even if I look up various data.

The question is as follows.

Q. What is the basic data type used by Python to store the array?

I think it's an array, but I'm confused with list, triple, array, etc.

If you know the answer to the above question, please explain the concept.

I'd be so thankful.

python

2022-09-22 15:43

1 Answers

c, Something like an array in java is array, but it is not a default data type and is provided as a module.

The types provided by the language are list and tuple.

Know the differences and use them.

The list is a variable structure with various types.

The tuple has various types, but it cannot be changed.

The array is similar to the list, but the type is fixed.(c, similar to the arrangement of java.)


2022-09-22 15:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.