Creating an Integer Array in Python

  • Share this:

Code introduction


Create an array containing two integers.


Technology Stack : array

Code Type : Function

Code Difficulty : Beginner


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