'''
53. Write a NumPy program to extract all numbers from a given
array which are less and greater than a specified number.

'''

import numpy as np  
nums = np.array([[5.54, 3.38, 7.99],
              [3.54, 4.38, 6.99],
              [1.54, 2.39, 9.29]])
print("Original array:")
print(nums)
n = 5
print("\nElements of the said array greater than",n)
print(nums[nums > n])
n = 6
print("\nElements of the said array less than",n)
print(nums[nums < n])
56b2fbdbef3b21df51ddb8d2d179c079e37849c8
<mask token>

<mask token>
print('Original array:')
print(nums)
<mask token>
print("""
Elements of the said array greater than""", n)
print(nums[nums > n])
<mask token>
print("""
Elements of the said array less than""", n)
print(nums[nums < n])

<mask token>
nums = np.array([[5.54, 3.38, 7.99], [3.54, 4.38, 6.99], [1.54, 2.39, 9.29]])
print('Original array:')
print(nums)
n = 5
print("""
Elements of the said array greater than""", n)
print(nums[nums > n])
n = 6
print("""
Elements of the said array less than""", n)
print(nums[nums < n])

<mask token>
import numpy as np
nums = np.array([[5.54, 3.38, 7.99], [3.54, 4.38, 6.99], [1.54, 2.39, 9.29]])
print('Original array:')
print(nums)
n = 5
print("""
Elements of the said array greater than""", n)
print(nums[nums > n])
n = 6
print("""
Elements of the said array less than""", n)
print(nums[nums < n])

'''
53. Write a NumPy program to extract all numbers from a given
array which are less and greater than a specified number.

'''

import numpy as np  
nums = np.array([[5.54, 3.38, 7.99],
              [3.54, 4.38, 6.99],
              [1.54, 2.39, 9.29]])
print("Original array:")
print(nums)
n = 5
print("\nElements of the said array greater than",n)
print(nums[nums > n])
n = 6
print("\nElements of the said array less than",n)
print(nums[nums < n])