first of all this a homework so I will not give you direct code I will help you with steps
1. Create a multi-dimensional list of Elements
eg. a = [['jhon',20,'male'],
['daisy',19,'female']]
2. Get input in the variable x or whatever
3. then use for loop to loop through the all the first element is which is a name in my case:
eg.
// this a loop for finding the element and printing its values
for i in range(len(a)):
// here we are checking if the user input value matches or not if matches then print it
if(x == a[i][0]):
print("Age: ",a[i][1]," Gender: ",a[i][2])