Creating Integer Array with Three Arguments

  • Share this:

Code introduction


Define a function that creates an integer array using the array module and initializes it with three arguments.


Technology Stack : array

Code Type : Function

Code Difficulty : Intermediate


                
                    
def aaaa(arg1, arg2, arg3):
    import array
    arr = array.array('i', [arg1, arg2, arg3])
    return arr                
              
Tags: