So i have a class exercice that i have to make a program that gives me all the information about the youngest person of a group, i could do the age, it gives me the youngest age but with the names and citizen cards could not get what i've wanted.
thats the code the way i tried do make it.
persons = []
ages = []
numbers_of_citizen_card = []
i = int(input('type the number of people in the group: '))
for i in range (0, i):
name = input('Type your name: ')
age = int(input('Type your age: '))
n_cc = int(input('Type the number of your citizen card: '))
persons.append(name)
ages.append(age)
numbers_of_citizen_card.append(n_cc)
if (i > 999):
print('It is not possible to sign up more people. ')
else:
print('The youngest person in the group with {} years old, is named {} with the number of citizen card of {}.'.format(min(ages), min(persons), min(numbers_of_citizen_card)))