Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Hacer un programa que me permita agregar lis siguientes datos
- #Nombre
- #Dirección
- #Teléfono
- #De 5 amigos en un archivo llamado amigo.txt
- #Luego que imprima todos los datos
- #Y por ultimo le agrega 3 amigos mas e imprimir de nuevo
- def datos():
- for i in range(1):
- nombre=input("Ingresa tu nombre: ")
- dirrecion=input("Ingresa tu dirrecion: ")
- telefono=int(input("Ingresa tu telefono: "))
- print("Mis amigos son: ")
- for x in range(1):
- print("su nombre es: ",nombre)
- print("su dirrecion es: ",dirrecion)
- print("su telefono es: ",telefono)
- add=input("quiere agregar 3 amigos mas? si su respuesta es si escribir 'a' si no 'x': ")
- if add=='a':
- print("bienvenido")
- else:
- print("Adios")
- datos()
Advertisement
Add Comment
Please, Sign In to add comment