# Can anyone tell me weather it is correct or not :)

print(“------------------------------------------------------------>>>>Question 10<<<<----------------------------------------------------------------\n”)

Python Program to find Reverse a given array

class Question10:
def init(self):
self.Array = []

def insert_from_start(self,ele):
    self.Array.insert(0,ele)
    return self.Array

def insert_from_end(self,ele):
    self.Array.append(ele)
    return self.Array

def insert_from_pos(self,pos,ele):
    if pos> len(self.Array):
        return self.Array
    else:
        self.Array.insert(pos,ele)
        return self.Array

def reverse_array(self):
    print("Reverse Array is : --->>>>")
    return self.Array[::-1]

q = Question10()
q.insert_from_start(10)
q.insert_from_end(89)
q.insert_from_pos(7,23)
q.insert_from_start(456)
q.insert_from_end(464)
q.insert_from_pos(6,32)
q.insert_from_start(13)
q.insert_from_end(987)
q.insert_from_pos(5,89)
q.insert_from_start(123)
q.insert_from_end(123)
q.insert_from_pos(6,123)
print(q.insert_from_start(45))
print()
print(q.reverse_array())

@sriv.ansh

Correct, keep it up.