<gh_stars>0
                                                        #  Comparing Arrays

# Create arrays
import numpy as np
my_house = np.array([18.0, 20.0, 10.75, 9.50])
your_house = np.array([14.0, 24.0, 14.25, 9.0])

# my_house greater than or equal to 18
print(my_house >= 18)

# my_house less than your_house

print(my_house <= your_house)

                                                        #  and, or, not (1)               
# Define variables
my_kitchen = 18.0
your_kitchen = 14.0

# my_kitchen bigger than 10 and smaller than 18?

print(my_kitchen > 10 and my_kitchen < 18)

# my_kitchen smaller than 14 or bigger than 17?
print(my_kitchen > 17 or my_kitchen < 14)

# Double my_kitchen smaller than triple your_kitchen?
print(my_kitchen*2 < your_kitchen*3)

                                                      # Boolean operators with NumPy

# Create arrays
import numpy as np
my_house = np.array([18.0, 20.0, 10.75, 9.50])
your_house = np.array([14.0, 24.0, 14.25, 9.0])

# my_house greater than 18.5 or smaller than 10
print(np.logical_or(my_house > 18.5, my_house<10))

# Both my_house and your_house smaller than 11
print(np.logical_and(my_house, your_house <10))

#  Comparing Arrays

# Create arrays
import numpy as np
my_house = np.array([18.0, 20.0, 10.75, 9.50])
your_house = np.array([14.0, 24.0, 14.25, 9.0])

# my_house greater than or equal to 18
print(my_house >= 18)

# my_house less than your_house

print(my_house <= your_house)

                                                        #  and, or, not (1)               
# Define variables
my_kitchen = 18.0
your_kitchen = 14.0

# my_kitchen bigger than 10 and smaller than 18?

print(my_kitchen > 10 and my_kitchen < 18)

# my_kitchen smaller than 14 or bigger than 17?
print(my_kitchen > 17 or my_kitchen < 14)

# Double my_kitchen smaller than triple your_kitchen?
print(my_kitchen*2 < your_kitchen*3)

                                                      # Boolean operators with NumPy

# Create arrays
import numpy as np
my_house = np.array([18.0, 20.0, 10.75, 9.50])
your_house = np.array([14.0, 24.0, 14.25, 9.0])

# my_house greater than 18.5 or smaller than 10
print(np.logical_or(my_house > 18.5, my_house<10))

# Both my_house and your_house smaller than 11
print(np.logical_and(my_house, your_house <10))
#  Comparing Arrays # Create arrays # my_house greater than or equal to 18 # my_house less than your_house #  and, or, not (1) # Define variables # my_kitchen bigger than 10 and smaller than 18? # my_kitchen smaller than 14 or bigger than 17? # Double my_kitchen smaller than triple your_kitchen? # Boolean operators with NumPy # Create arrays # my_house greater than 18.5 or smaller than 10 # Both my_house and your_house smaller than 11