SHARE
TWEET

Untitled

a guest Jun 18th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. agenda=[]
  2. n_contato=int(input("Quantos contatos voce deseja salvar? "))
  3. itens=1
  4. def Agenda_Telefonica
  5.     for i in range(n_contato):
  6.         contato=[]
  7.         for j in range(itens):
  8.             nombre=input("Cual es el nombre del contato, mi amigx? ")
  9.             telefono=int(input("Cual es el telefono? "))
  10.             contato.append(nombre)
  11.             contato.append(telefono)
  12.         agenda.append(contato)
  13.         return agenda
  14. agenda.sort()   ### colocado em ordem alfabetica ###
  15. print("Vossa agenda telefonica tienes ",len(agenda),"contatos salvos, sendo ellos",agenda)
  16.  
  17. index=agenda.index.contato.index(input("Estas a procurar el contato de quem? "))
  18. print("El contatito que tu procuras es: ",agenda(index))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top