Answer:
import array as arr
a = arr.array("i")
b = input("Enter b:")
c = input("Enter c:")
d = input("Enter d:")
a.append(int(b))
a.append(int(c))
a.append(int(d))
len1 = int(b)-1
for i in range(0, int(len1)):
e = input("Enter the value of e:")
a.append(int(e))
i = 3
len1 = Len(a)
for i in range(3, len1):
if a[i] <= int(d) & a[i] >= int(c):
print(a[i])
Step-by-step explanation:
I have used arrays in the above solutions. And various methods of arrays have been used further like append. The method append adds the new element at the last of the arrays. And the int(b) changes the b data type to integer from string.The process is similar to that as explained in the question. And array library has been used for making use of the array, and use it for storing the integers, and perform all the operations required. The first, second and rest of the elements of the arrays are as mentioned in the question. And finally the array elements are printed that are within the range.