https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Dict-13&feed=atom&action=history
Curso de Programación en Python/Dict-13 - Historial de revisiones
2024-03-28T11:47:35Z
Historial de revisiones para esta página en el wiki
MediaWiki 1.32.1
https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Dict-13&diff=6796&oldid=prev
Rrc: Página creada con '__NOTOC__ * Dict-13.py ** Resultado == Dict-13.py == <syntaxhighlight lang="python" line="GESHI_FANCY_LINE_NUMBERS"> #!/usr/bin/python3 #-*-...'
2014-11-25T18:24:35Z
<p>Página creada con '__NOTOC__ * <a href="#Dict-13"> Dict-13.py</a> ** <a href="#Resultado"> Resultado</a> == Dict-13.py == <syntaxhighlight lang="python" line="GESHI_FANCY_LINE_NUMBERS"> #!/usr/bin/python3 #-*-...'</p>
<p><b>Página nueva</b></p><div>__NOTOC__<br />
* [[:#Dict-13 | Dict-13.py]]<br />
** [[:#Resultado | Resultado]]<br />
<br />
== Dict-13.py ==<br />
<br />
<syntaxhighlight lang="python" line="GESHI_FANCY_LINE_NUMBERS"><br />
<br />
#!/usr/bin/python3<br />
#-*-coding: utf-8 -*-<br />
<br />
Llaves = [ "Ave", "Planta", "Piedra" ]<br />
<br />
DictNuevo = dict.fromkeys( Llaves, 5 )<br />
<br />
print( "El DictNuevo:", DictNuevo )<br />
<br />
</syntaxhighlight><br />
<br />
<br />
=== Resultado ===<br />
<br />
<pre><br />
[rrc@Llawyr PythonClase]$ ./Dict-13.py<br />
El DictNuevo: {'Planta': 5, 'Piedra': 5, 'Ave': 5}<br />
</pre><br />
<br />
[[Category:Programación en Python]]<br />
[[Category:PythonCabal]]<br />
[[Category:CursoPython]]</div>
Rrc