# numpy string operations | swapcase() function in Python 
 # Python Program explaining
# numpy.char.swapcase() function 
  
import numpy as geek 
  
  
in_arr = geek.array(['P4Q R', '4q Rp', 'Q Rp4', 'rp4q'])
print ("input array : ", in_arr)
  
out_arr = geek.char.swapcase(in_arr)
print ("output swapcasecased array :", out_arr)