Creating and Returning an Integer Array

  • Share this:

Code introduction


Create an array containing two integers and return it.


Technology Stack : array

Code Type : Function

Code Difficulty : Intermediate


                
                    
def aaaa(a, b):
    import array
    result = array.array('i', [a, b])
    return result                
              
Tags: