<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FTuple-3</id>
	<title>Curso de Programación en Python/Tuple-3 - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_de_Programaci%C3%B3n_en_Python%2FTuple-3"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Tuple-3&amp;action=history"/>
	<updated>2026-05-07T13:27:55Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Tuple-3&amp;diff=6772&amp;oldid=prev</id>
		<title>Rrc en 19:14 24 nov 2014</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_de_Programaci%C3%B3n_en_Python/Tuple-3&amp;diff=6772&amp;oldid=prev"/>
		<updated>2014-11-24T19:14:18Z</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;== Tuple-3.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;
print( &amp;quot;Creamos un packed tuple que se llama Mascotas&amp;quot; )&lt;br /&gt;
Mascotas = ( &amp;quot;Zorrilla&amp;quot;, &amp;quot;Puerca&amp;quot;, &amp;quot;Cuyo&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
# Unpack tuple&lt;br /&gt;
print( &amp;quot;Vamos unpack nuestra tuple en Mascota1, Mascota2 y Mascota3&amp;quot; )&lt;br /&gt;
(Mascota1, Mascota2, Mascota3) = Mascotas&lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;Mascota1 es {0}\nMascota2 es {1}\nMascota3 es {2}&amp;quot;&lt;br /&gt;
          .format( Mascota1, Mascota2, Mascota3 ) )&lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;\nVamos cambiar Mascota1 con Macota3&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
(Mascota3, Mascota1) = (Mascota1, Mascota3) &lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;Mascota1 es {0}\nMascota2 es {1}\nMascota3 es {2}&amp;quot;&lt;br /&gt;
          .format( Mascota1, Mascota2, Mascota3 ) )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resultado ===&lt;br /&gt;
&lt;br /&gt;
[rrc@pridd PythonClase]$ ./Tuple-3.py &lt;br /&gt;
 Creamos un packed tuple que se llama Mascotas&lt;br /&gt;
 Vamos unpack nuestra tuple en Mascota1, Mascota2 y Mascota3&lt;br /&gt;
 Mascota1 es Zorrilla&lt;br /&gt;
 Mascota2 es Puerca&lt;br /&gt;
 Mascota3 es Cuyo&lt;br /&gt;
 &lt;br /&gt;
 Vamos cambiar Mascota1 con Macota3&lt;br /&gt;
 Mascota1 es Cuyo&lt;br /&gt;
 Mascota2 es Puerca&lt;br /&gt;
 Mascota3 es Zorrilla&lt;br /&gt;
&lt;br /&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>