How to Make an Empty Array on Python

An array is a group of values of the same or differing types (strings, integers, decimals, etc.) contained in a single variable. Before an array variable can be used in Python, it must first be created as an empty variable so that the program knows that it exists. Once this empty array is created, you can fill it with values as needed.

Instructions

    • 1

      Open the Python application file in which you want to create an empty array.

    • 2

      Move your cursor to the section of the file where you want to create the array.

    • 3

      Press "Enter" to create a new line on which to make the array.

    • 4

      Type "new Array $arrayVariable = [];" into the new line to create a new empty array with the variable name of "arrayVariable."

Related Searches:

Comments

Related Ads

Featured