Some common data types in python

Some common data types in python are tuples, arrays, and dictionaries.

Arrays can be implemented in either straight python or using the Numpy scientific computing library. Basically, an array is a sequence of numbers. It can be 1D or 2D as in a matrix, or even ND as in a tensor.

A tuple on the other hand is a non-mutable set of numbers, i.e. once you define it you can’t change it.

A dictionary is like an array, but it has another layer — a key. Think of it like the index to a book. You have the key words associated with numbers, in this case page numbers. It’s basically an association between two parameters.

 

We use dictionaries in the next post where we discuss a pathway to the ocean from the aerospace universe.

 

More information here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.