<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FDict-5</id>
	<title>Curso de Programación en Python/Dict-5 - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FDict-5"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Dict-5&amp;action=history"/>
	<updated>2026-04-04T14:04:35Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Dict-5&amp;diff=6788&amp;oldid=prev</id>
		<title>Rrc en 20:14 24 nov 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Dict-5&amp;diff=6788&amp;oldid=prev"/>
		<updated>2014-11-24T20:14:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#Dict-5 | Dict-5.py]]&lt;br /&gt;
** [[:#Resultado | Resultado]]&lt;br /&gt;
&lt;br /&gt;
== Dict-5.py ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/python3&lt;br /&gt;
#-*-coding: utf-8 -*-&lt;br /&gt;
&lt;br /&gt;
Accesos = { &amp;quot;Página principal&amp;quot; : 125, &amp;quot;Mapa de sitio&amp;quot; : 27, &amp;quot;Acerca de&amp;quot; : 43 }&lt;br /&gt;
Llaves = Accesos.keys() # Guardar una LIST de llaves&lt;br /&gt;
Valores = Accesos.values() # Guardar una LIST de valores&lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;La list de Llaves: &amp;quot;, end=&amp;#039;&amp;#039; )&lt;br /&gt;
print( Llaves )  # Imprime una LIST de llaves&lt;br /&gt;
print( &amp;quot;Son&amp;quot;, len( Llaves ), &amp;quot;llaves\n&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;La list de Valores: &amp;quot;, end=&amp;#039;&amp;#039; )&lt;br /&gt;
print( Valores ) # Imprime una LIST de valores&lt;br /&gt;
print( &amp;quot;Son&amp;quot;, len( Valores ), &amp;quot;valores&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Resultado ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[rrc@Llawyr PythonClase]$ ./Dict-5.py&lt;br /&gt;
La list de Llaves: dict_keys([&amp;#039;Página principal&amp;#039;, &amp;#039;Acerca de&amp;#039;, &amp;#039;Mapa de sitio&amp;#039;])&lt;br /&gt;
Son 3 llaves&lt;br /&gt;
&lt;br /&gt;
La list de Valores: dict_values([125, 43, 27])&lt;br /&gt;
Son 3 valores&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Programación en Python]]&lt;br /&gt;
[[Category:PythonCabal]]&lt;br /&gt;
[[Category:CursoPython]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>