numpy.core.defchararray.isupper(arr)
returns True for each item, if all characters in the string are uppercase at least one character, otherwise returns false.
Parameters:
arr: array_like of str or unicodeReturns: [ndarray] Output array of bools.
Code # 1:
|
Output :
input array: [’P4Q R’’ 4Q rP’ ’Q rp4’’ rpq’] output array: [True False False False]
Code # 2:
|
Exit:
input array: [’GEEKS’’ for’ ’ Geeks’] output array: [True False False]