Array 1 Flashcards
The foundation for all data sciences in Python
Arrays
A container for items with the same type
Arrays
TRUE OR FALSE: A combination of the arrays could save a lot of time
by reducing the overall size of the code.
TRUE
What’s faster, list or array? Why?
Array, because it uses less memory
Syntax to Create Python
Identifier, Module, Method, Type Code, Elements
Specify a name like usually, you do for variables
Identifier
Python has a special module for creating array in Python, called “array” – you must import it before using it
Module
The array module has a method for initializing the array. It takes two arguments, type code and elements.
Method
Specify the data type.
Type Code
Specify the items within the square brackets
Elements
The elements are within a _______
Bracket