https://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/print-6&feed=atom&action=history
Curso de Programación en Python/print-6 - Historial de revisiones
2024-03-29T15:21:13Z
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/print-6&diff=6254&oldid=prev
Rrc en 23:05 30 sep 2014
2014-09-30T23:05:13Z
<p></p>
<p><b>Página nueva</b></p><div>__NOTOC__<br />
* [[:#print-6.py | print-6.py]]<br />
** [[:#Resultado | Resultado]]<br />
** [[:#Explicación | Explicación]]<br />
<br />
== print-6.py ==<br />
<br />
<syntaxhighlight lang="python" line="GESHI_FANCY_LINE_NUMBERS"><br />
<br />
#!/usr/bin/python3<br />
#-*-coding: utf-8 -*-<br />
<br />
print( 'Coordenadas: {latitud}, {longitud}' .format( latitud='37.24N', longitud='-115.81W' ) )<br />
<br />
coord = { 'latitud': '37.24N', 'longitud': '-115.81W' }<br />
<br />
print( 'Coordenadas: {latitud}, {longitud}' .format( **coord ) )<br />
<br />
</syntaxhighlight><br />
<br />
=== Resultado ===<br />
<br />
[rrc@Pridd PythonClase]$ ./print-6.py <br />
Coordenadas: 37.24N, -115.81W<br />
Coordenadas: 37.24N, -115.81W<br />
<br />
=== Explicación ===<br />
<br />
<br />
[[Category:Programación en Python]]<br />
[[Category:PythonCabal]]<br />
[[Category:CursoPython]]</div>
Rrc