Good morning, I need help with this statement:
"Modify the previous program so that it takes into account the gender of the recipient, for that, they will have to receive a list of lists, with name and gender."
The previous program is as follows:
cont=0
lista=[]
nombre=""
while cont<=5:
nombre=input("Escribe un nombre: ")
lista.append(nombre)
cont=cont+1
p=int(input("Escribe un posición: "))
n=int(input("Escribe una cantidad: "))
for nom in lista[p:n+1]:
print ("Querido",nom ,"me alegro de verte")
What makes this program is that it allows you to create a list with a series of names that the user enters, then the user enters the starting position of the list and the number of names that he wants to see at the end. Now I have to modify it so that I can do what it asks in the above statement.
Thanks