-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamenA.py
More file actions
50 lines (42 loc) · 1.03 KB
/
examenA.py
File metadata and controls
50 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
agenda = [
{
'nombre':'Kevin Bueno',
'telefono':'3144879954',
'correo':'kean.solano@gmail.com'
},
{
'nombre':'Orfa Archila',
'telefono':'3204888554',
'correo':'orfa.archila@gmail.com'
},
{
'nombre':'Natalia Palomino',
'telefono':'3005549954',
'correo':'napal@gmail.comm'
}
]
#agenda[0]['nombre'] = 'Prueba'
def crear_contacto( name, phone, email ):
agenda.append(
{
'nombre':name,
'telefono':phone,
'correo':email
}
)
def editar_contacto(location, name, phone, email):
agenda.pop(location)
agenda.insert(location,
{
'nombre':name,
'telefono':phone,
'correo':email
}
)
#editar_contacto( 0, 'juan', 'pedro', 'r' )
"""def editar_contacto(location, name, phone, email):
agenda[location]['nombre'] = name,
agenda[location]['nombre'] = phone,
agenda[location]['nombre'] = email
editar_contacto(0, 'pepe', 'pepa', 'ess')"""
print(agenda)