<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title>Planeta PythonBrasil</title>
	<link rel="self" href="http://www.python.org.br/planet/atom.xml"/>
	<link href="http://www.python.org.br/planet/"/>
	<id>http://www.python.org.br/planet/atom.xml</id>
	<updated>2012-05-17T13:44:56+00:00</updated>
	<generator uri="http://www.planetplanet.org/">Planet/2.0 +http://www.planetplanet.org</generator>

	<entry xml:lang="en">
		<title type="html">Comunidade n&#227;o &#233; fim, &#233; meio.</title>
		<link href="http://feedproxy.google.com/~r/henriquebastos/~3/b-6OhfPWU-A/"/>
		<id>http://henriquebastos.net/?p=1123</id>
		<updated>2012-05-14T16:58:06+00:00</updated>
		<content type="html">&lt;p&gt;Mais um &lt;a href=&quot;https://github.com/torvalds/linux/pull/17&quot;&gt;epis&#243;dio&lt;/a&gt; envolvendo o Linus e um de seus projetos no Github aconteceu na &#250;ltima sexta-feira. Como era de se esperar um monte de gente participou criando uma thread no m&#237;nimo esquizofr&#234;nica. Muitos assuntos acabaram misturados, mas eu quero tratar de um especificamente: comunidade.&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-1123&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As rea&#231;&#245;es j&#225; eram muitas e de in&#237;cio li as primeiras 5 mensagens da thread e me espantei com o fato de, apesar de toda a como&#231;&#227;o, ningu&#233;m criticou o @jaseemabid. Mesmo ap&#243;s o Linus ter &lt;a href=&quot;https://github.com/torvalds/linux/pull/17#issuecomment-5654674&quot;&gt;respondido o autor do pull request&lt;/a&gt;, ele sugeriu que &lt;a href=&quot;https://github.com/torvalds/linux/pull/17#issuecomment-5659871&quot;&gt;&amp;#8220;deixasse passar essa&amp;#8221;&lt;/a&gt; por considerar um patch simples, &lt;em&gt;afinal o cara estava colaborando&lt;/em&gt;. A afirma&#231;&#227;o paternalista foi desrespeitosa, apesar de provavelmente n&#227;o ter sido maliciosa.&lt;/p&gt;
&lt;p&gt;O Linus &lt;a href=&quot;https://github.com/torvalds/linux/pull/17#issuecomment-5659970&quot;&gt;respondeu&lt;/a&gt;, e foi este o estopim para v&#225;rios coment&#225;rios que em ess&#234;ncia s&#227;o &amp;#8220;pr&#243;-comunidade&amp;#8221; e &amp;#8220;contra o mau exemplo de lideran&#231;a do Linus&amp;#8221;.&lt;/p&gt;
&lt;p&gt;Tenho a impress&#227;o que h&#225; uma tend&#234;ncia &#224; invers&#227;o entre meio e fim quando o assunto &#233; comunidade, contribui&#231;&#227;o e colabora&#231;&#227;o. Os discursos retratam a comunidade como o &lt;em&gt;fim&lt;/em&gt; maior, enquanto comunidade &#233; na verdade&#160;o &lt;em&gt;meio&lt;/em&gt; mais rico para o florescimento de iniciativas livres e distribu&#237;das. A comunidade &#233; uma&#160;&lt;a href=&quot;http://www.slideshare.net/augustodefranco/fluzz-ebook&quot;&gt;rede social&lt;/a&gt; e&#160;em si &#233; ela s&#243; potencial. IMHO, a for&#231;a que realmente vence a in&#233;rcia &#233; o &lt;strong&gt;fazer&lt;/strong&gt; de cada um. Fazer por si mesmo. N&#227;o com um senso de individualismo ou ego&#237;smo, mas fazer porque voc&#234; deseja, gosta, acredita que deve. N&#227;o para um &amp;#8220;bem maior&amp;#8221; ou &amp;#8220;bem comum&amp;#8221;.&lt;/p&gt;
&lt;p&gt;Essa confus&#227;o &#233; natural e j&#225; aconteceu no &lt;a href=&quot;http://horaextra.org&quot;&gt;#Horaextra&lt;/a&gt; do Rio, por exemplo. O encontro estava crescendo e sustentando o crescimento com a participa&#231;&#227;o de cada vez mais gente interessante. Em certo momento surgiu uma preocupa&#231;&#227;o com &amp;#8220;n&#227;o deixar aquilo morrer&amp;#8221;, afinal estava t&#227;o bom! Por que n&#227;o persistir e escalar? Com isso, iniciou-se uma discuss&#227;o estranha que em ess&#234;ncia, levava &#224; uma institucionaliza&#231;&#227;o do #Horaextra. Discutimos muito e aprendemos que para o #Horaextra n&#227;o morrer bastava que &lt;strong&gt;uma pessoa&lt;/strong&gt; continuasse comparecendo. A continuidade s&#243; dependia do desejo individual de cada um. Felizmente conclu&#237;mos que o #Horaextra &#233; &lt;strong&gt;s&#243; um chopp&lt;/strong&gt; e nada mais. Se morresse, seria porque as pessoas desejavam fazer outra coisa em vez de ir para aquele encontro e isso &#233; &#243;timo.&lt;/p&gt;
&lt;p&gt;Esse entendimento foi determinante para que outras iniciativas pudessem se &lt;em&gt;inspirar&lt;/em&gt; naquele exemplo. No entanto, cada uma seguiria tocando seu barco independentemente, segundo os desejos individuais dos que empreendessem a nova iniciativa.&lt;/p&gt;
&lt;p&gt;Um belo fruto disso foi o &lt;a href=&quot;http://horaextrabh.org/&quot;&gt;#HoraextraBH&lt;/a&gt;. &#201; uma iniciativa fant&#225;stica com uma identidade toda pr&#243;pria, com a qual tamb&#233;m me identifico muito. Tanto que j&#225; at&#233; cometi o equ&#237;voco de propor uma fus&#227;o entre as listas de discuss&#245;es do &lt;a href=&quot;http://groups.google.com/group/horaextra&quot;&gt;Rio&lt;/a&gt; e de &lt;a href=&quot;https://groups.google.com/group/horaextrabh&quot;&gt;BH&lt;/a&gt;, o que n&#227;o faz sentido algum. S&#227;o duas iniciativas independentes e quem se identificar com ambas, basta se inscrever nas duas listas e interagir com a turma.&lt;/p&gt;
&lt;p&gt;Mas para que eu falei tudo isso? Bom, uma coisa que admiro no Linus &#233; que ele tem uma capacidade incr&#237;vel de imaginar algo e transformar a sua realidade pautado em sua imagina&#231;&#227;o. Querer &#233; o suficiente para ele se lan&#231;ar em uma iniciativa, mesmo que n&#227;o d&#234; em nada. E o cara faz isso h&#225; mais de 20 anos.&lt;/p&gt;
&lt;p&gt;O fato dele ter conduzido algumas iniciativas de forma p&#250;blica e aberta ajudou todo um movimento a emergir entorno do Linux e tudo o mais. Mas &#233; fundamental ter em mente que cada iniciativa emergiu por desejo de outros indiv&#237;duos que n&#227;o ele. Isso &#233; importante, pois ele n&#227;o &#233; e nem parece querer ser lider de ningu&#233;m. E isso choca as pessoas! Afinal, florestas inteiras s&#227;o consumidas para propagandear estrat&#233;gias &lt;a href=&quot;https://pt.wikipedia.org/wiki/Coer%C3%A7%C3%A3o&quot;&gt;coercitivas&lt;/a&gt; travestidas de &amp;#8220;lideran&#231;a&amp;#8221; nas p&#225;ginas da Voc&#234; S.A. e similares.&lt;/p&gt;
&lt;p&gt;Acho que isso &#233; um ponto relevante que parece passar despercebido. A maioria das pessoas esperam dele o comportamento de um l&#237;der, rei, her&#243;i, pai, salvador. Mas o cara s&#243; segue seu desejo e pronto. Ele interage com um monte de gente? Sim, mas nos termos dele, e com aqueles cujos valores est&#227;o alinhados com os dele. Ouso dizer sinceramente, que ele parece tratar o Linux como &lt;em&gt;&amp;#8220;s&#243; um chopp&amp;#8221;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Qualquer um pode &amp;#8220;tomar um chopp&amp;#8221; com ele. As &lt;a href=&quot;http://www.youtube.com/watch?v=LLBrBBImJt4&quot;&gt;instru&#231;&#245;es&lt;/a&gt; s&#227;o vastas. Mas se ele j&#225; disse expl&#237;citamente que n&#227;o aceita pull requests pelo Github, porque as pessoas insistem? &#201; direito dele trabalhar como deseja e se o outro discorda, &#233; direito do outro se negar a contribuir. Normal. N&#227;o gostou? Faz um fork do projeto e sustenta seu fork! Simples, mas exige uma alta capacidade agir pelo seu desejo.&lt;/p&gt;
&lt;p&gt;No entanto, quando acontecem esses epis&#243;dios, rapidamente surgem os discursos &amp;#8220;paz e amor&amp;#8221;. Discursos furados, at&#233; meio socialistas, de igualdade e esfor&#231;o em prol de um bem comum materializado em c&#243;digo. Discursos falsos sobre comunidade, pois uma comunidade que n&#227;o respeita a liberdade do &lt;strong&gt;indiv&#237;duo&lt;/strong&gt; n&#227;o &#233; comunidade. &#201; outra coisa, &#233; massa, p&#250;blico, plat&#233;ia, audi&#234;ncia. &#201; um passo para a conversa de &amp;#8220;bem comum&amp;#8221;, &amp;#8220;bem maior&amp;#8221; e a hist&#243;ria est&#225; repleta de p&#233;ssimos exemplos que aconteceram por um bem maior.&lt;/p&gt;
&lt;p&gt;[]&amp;#8216;s, HB!&lt;/p&gt;
&lt;img src=&quot;http://feeds.feedburner.com/~r/henriquebastos/~4/b-6OhfPWU-A&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt;</content>
		<author>
			<name>Henrique Bastos</name>
			<uri>http://henriquebastos.net</uri>
		</author>
		<source>
			<title type="html">Henrique Bastos.NET</title>
			<link rel="self" href="http://feeds.feedburner.com/henriquebastos?format=xml"/>
			<id>http://feeds.feedburner.com/henriquebastos?format=xml</id>
			<updated>2012-05-15T17:44:34+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Extraindo o &#225;udio MP3 de um v&#237;deo com ffmpeg</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/GZB7UcLzU1c/"/>
		<id>http://elcio.com.br/?p=3694</id>
		<updated>2012-05-08T12:45:53+00:00</updated>
		<content type="html">&lt;p&gt;Gosto bastante de alguns videopodcasts, como o &lt;a href=&quot;http://www.usina.com/rodaeavisa/&quot;&gt;Roda e Avisa&lt;/a&gt; e o &lt;a href=&quot;http://miguelcavalcanti.com/category/man-in-the-arena/&quot;&gt;Man in the Arena&lt;/a&gt;. Mas o tempo que tenho para ouv&#237;-los &#233; quando estou dirigindo. Nesse momento, o fato de serem em v&#237;deo n&#227;o significam nada. T&#234;-los em MP3 &#233; muito mais pr&#225;tico para mim, que assim consigo ouv&#237;-los no som do carro.&lt;/p&gt;
&lt;p&gt;Para baixar os v&#237;deos tenho usado o &lt;a href=&quot;http://www.bestvideodownloader.com/&quot;&gt;Easy YouTube Video Downloader&lt;/a&gt;. Meu pr&#243;ximo projeto pessoal &#233; automatizar isso de alguma maneira, quem sabe com &lt;a href=&quot;http://www.getmiro.com/&quot;&gt;Miro&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Depois, para extrair apenas o &#225;udio, em MP3, fa&#231;o:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ffmpeg -i entrada_video.mp4 -vn saida_audio.mp3&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Simples e r&#225;pido. E f&#225;cil de automatizar.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/VFXp2PnwQavl_E_Rv0GEYxhz0hE/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/VFXp2PnwQavl_E_Rv0GEYxhz0hE/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/VFXp2PnwQavl_E_Rv0GEYxhz0hE/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/VFXp2PnwQavl_E_Rv0GEYxhz0hE/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=GZB7UcLzU1c:Im1njTdGkSk:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=GZB7UcLzU1c:Im1njTdGkSk:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=GZB7UcLzU1c:Im1njTdGkSk:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Vagas de Python para trabalhar remoto</title>
		<link href="http://feedproxy.google.com/~r/pyAvelino/~3/pcOrDltmoLM/"/>
		<id>http://avelino.us/?p=165</id>
		<updated>2012-05-07T19:46:22+00:00</updated>
		<content type="html">&lt;p&gt;&lt;a href=&quot;http://mochii.co.uk/&quot;&gt;&lt;img class=&quot;alignleft&quot; title=&quot;Mochii&quot; src=&quot;http://mochii.co.uk/static/img/h_logo340x86.png&quot; alt=&quot;&quot; width=&quot;340&quot; height=&quot;86&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A duas semana eu escrevi um blogpost sobre &amp;#8220;&lt;a title=&quot;Trabalhar para empresa de fora do Brasil&quot; href=&quot;http://avelino.us/2012/04/20/trabalhar-para-empresa-de-fora-do-brasil/&quot;&gt;Trabalhar para empresa de fora do Brasil&lt;/a&gt;&amp;#8221; e realmente vale muito apena, como a demando do projeto aumentou consideravelmente estamos precisando de desenvolvedores para entrar no time.&#160;Nosso time &#233; respons&#225;vel por desenvolver algumas ferramentas de SEO.&lt;/p&gt;
&lt;p&gt;Conhecimento necessario:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dominio do idioma ingl&#234;s;&lt;/li&gt;
&lt;li&gt;Python;&lt;/li&gt;
&lt;li&gt;Django (Caso conhe&#231;a outro frameworks &#233; importante).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Itens importante:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tradu&#231;&#227;o de projeto open source;&lt;/li&gt;
&lt;li&gt;Foco (Como o trabalho &#233; remoto, temos que sempre ter foco no que estamos fazendo);&lt;/li&gt;
&lt;li&gt;Conhecimento em arquitetura de software;&lt;/li&gt;
&lt;li&gt;Contribuido com projeto open source (Ideal que tenho o repositorio aberto);&lt;/li&gt;
&lt;li&gt;&#211;timo conhecimento em desenvolvimento &#225;gil;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Estamos procurando por pessoas criativas, que gostem de inova&#231;&#227;o, de pesquisar e identificar novas tend&#234;ncias e de encarar desafios complexos com agilidade e velocidade.&lt;/p&gt;
&lt;p&gt;Se voc&#234; se encaixa neste perfil, envie seu curriculo em ingl&#234;s para mim (thiagoavelinoster AT gmail.com) com uma lista dos &#250;ltimos 5 livros t&#233;cnicos que voc&#234; leu, Github, Twitter, LinkedIn e o que voc&#234; quiser compartilhar.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/NvIYMxWFlqWKAvR2r7gobI1cwqA/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/NvIYMxWFlqWKAvR2r7gobI1cwqA/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/NvIYMxWFlqWKAvR2r7gobI1cwqA/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/NvIYMxWFlqWKAvR2r7gobI1cwqA/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://feeds.feedburner.com/~r/pyAvelino/~4/pcOrDltmoLM&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt;</content>
		<author>
			<name>Thiago Avelino</name>
			<email>thiagoavelinoster@gmail.com</email>
			<uri>http://avelino.us</uri>
		</author>
		<source>
			<title type="html">Thiago Avelino</title>
			<subtitle type="html">Python, MongoDB, Node.js, C, C++, NoSQL</subtitle>
			<link rel="self" href="http://feeds.feedburner.com/pyavelino"/>
			<id>tag:blogger.com,1999:blog-2742862280909730250</id>
			<updated>2012-05-07T23:44:28+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Dicas simples: notifica&#231;&#245;es na barra de t&#237;tulo</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/9IUAsyyQsaU/"/>
		<id>http://elcio.com.br/?p=3698</id>
		<updated>2012-05-03T15:03:00+00:00</updated>
		<content type="html">&lt;p&gt;Sem maiores explica&#231;&#245;es, &lt;a href=&quot;http://elcio.com.br/snippets/title_notification.html&quot;&gt;acesse&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://elcio.com.br/snippets/title_notification.js&quot;&gt;Baixe o script&lt;/a&gt;.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/s-25wZJ1i_ws53MSXS4VyZpnMww/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/s-25wZJ1i_ws53MSXS4VyZpnMww/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/s-25wZJ1i_ws53MSXS4VyZpnMww/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/s-25wZJ1i_ws53MSXS4VyZpnMww/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=9IUAsyyQsaU:o5MJ-lyrkug:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=9IUAsyyQsaU:o5MJ-lyrkug:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=9IUAsyyQsaU:o5MJ-lyrkug:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">Nossa arena de programa&#231;&#227;o</title>
		<link href="http://pugpe.wordpress.com/2012/05/02/resumo-hackday-soc-pug-pe/"/>
		<id>http://pugpe.wordpress.com/?p=907</id>
		<updated>2012-05-02T03:26:58+00:00</updated>
		<content type="html">&lt;p&gt;Ol&#225; pessoal,&lt;/p&gt;
&lt;p&gt;Neste &#250;ltimo s&#225;bado (28.04.2012) realizamos o nosso&lt;a href=&quot;http://soc.pug.pe&quot;&gt; &lt;strong&gt;I Hackday&lt;/strong&gt;&lt;/a&gt;, um sub-evento do Summer of Code do Grupo de Usu&#225;rios de Python de Pernambuco (PUG-PE). Contamos com a presen&#231;a de uma boa galera, em especial do CRC (Centro de Reciclagem) do Marista.&lt;/p&gt;
&lt;p&gt;A experi&#234;ncia foi bem legal em especial pela troca de conhecimento gerada l&#225; em diversas &#225;reas: I.A, empreendorismo, Python, hardware, rob&#243;tica, etc.&lt;/p&gt;
&lt;p&gt;Para quem n&#227;o foi perdeu uma boa oportunidade de programar e trocar id&#233;ias com uma galera legal.&lt;/p&gt;
&lt;p&gt;Abaixo algumas fotoso do nosso evento:&lt;/p&gt;
&lt;div class=&quot;wp-caption aligncenter&quot;&gt;&lt;img class=&quot;   &quot; title=&quot;Galera do CRC marcando presen&#231;a na &#225;ra de rob&#243;tica livre!&quot; src=&quot;http://farm8.staticflickr.com/7096/7133347921_d6ba090d61_b.jpg&quot; alt=&quot;Galera do CRC marcando presen&#231;a na &#225;ra de rob&#243;tica livre!&quot; width=&quot;344&quot; height=&quot;258&quot; /&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Galera do CRC marcando presen&#231;a na &#225;ra de rob&#243;tica livre!&lt;/p&gt;&lt;/div&gt;
&lt;div class=&quot;wp-caption aligncenter&quot;&gt;&lt;img class=&quot;    &quot; title=&quot;Toda galera reunida no I Hackday&quot; src=&quot;http://farm9.staticflickr.com/8159/7133329865_b835909ce8_b.jpg&quot; alt=&quot;Toda galera reunida no I Hackday&quot; width=&quot;354&quot; height=&quot;266&quot; /&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Toda galera reunida no I Hackday&lt;/p&gt;&lt;/div&gt;
&lt;div class=&quot;wp-caption aligncenter&quot;&gt;&lt;img class=&quot;    &quot; title=&quot;Quem programou tamb&#233;m ganhou brindes! &quot; src=&quot;http://farm8.staticflickr.com/7050/6987256578_fc4e1f09d6_b.jpg&quot; alt=&quot;Quem programou tamb&#233;m ganhou brindes! &quot; width=&quot;354&quot; height=&quot;266&quot; /&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Quem programou tamb&#233;m ganhou brindes!&lt;/p&gt;&lt;/div&gt;
&lt;div class=&quot;wp-caption aligncenter&quot;&gt;&lt;img class=&quot;  &quot; title=&quot;Nossa arena de programa&#231;&#227;o&quot; src=&quot;http://farm8.staticflickr.com/7116/7133334905_5a15bfb0ca_b.jpg&quot; alt=&quot;Nossa arena de programa&#231;&#227;o&quot; width=&quot;368&quot; height=&quot;277&quot; /&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Nossa arena de programa&#231;&#227;o&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;Mais fotos podem ser vistas neste &lt;a title=&quot;II Summer of Code do PUG-PE neste s&#225;bado a partir das 08:00 no&#160;CIn/UFPE&quot; href=&quot;http://pugpe.wordpress.com/2012/02/28/ii-summer-of-code-do-pug-pe-neste-sabado-a-partir-das-0800-no-cinufpe/&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Em breve teremos mais informa&#231;&#245;es sobre o t&#227;o esperado XX Encontro do &#160; PUG-PE!&lt;br /&gt;
Atenciosamente,&lt;/p&gt;
&lt;p&gt;Marcel&lt;/p&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/pugpe.wordpress.com/907/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/pugpe.wordpress.com/907/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=pugpe.wordpress.com&amp;blog=12164117&amp;post=907&amp;subd=pugpe&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PUG - PE</name>
			<uri>http://pugpe.wordpress.com</uri>
		</author>
		<source>
			<title type="html">PUG-PE</title>
			<subtitle type="html">Python em Pernambuco</subtitle>
			<link rel="self" href="http://pugpe.wordpress.com/feed/"/>
			<id>http://pugpe.wordpress.com/feed/</id>
			<updated>2012-05-03T03:44:26+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Lendo os logs do nginx com pipes e PHP</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/AcgkNf18sNc/"/>
		<id>http://elcio.com.br/?p=3703</id>
		<updated>2012-05-02T00:52:35+00:00</updated>
		<content type="html">&lt;p&gt;Um amigo me perguntou hoje sobre solu&#231;&#245;es NoSQL. Na conversa que se seguiu, descobri o que ele precisava fazer: precisa publicar um servidor cujas URLs v&#227;o simplesmente fazer um redirect para outro site, mas devem guardar as informa&#231;&#245;es do redirect para enviar para o &lt;a href=&quot;http://getclicky.com/&quot;&gt;Clicky&lt;/a&gt;. &#201; claro que os dados devem ser enviados ao Clicky o mais r&#225;pido poss&#237;vel, para que as estat&#237;sticas sejam atualizadas e o cliente do meu amigo possa acompanhar as estat&#237;sticas em tempo real. Mas o mais importante &#233; que o redirect seja feito rapidamente, e que o servi&#231;o aguente tr&#225;fego massivo.&lt;/p&gt;
&lt;p&gt;Meu amigo pensava em usar &lt;a href=&quot;http://nginx.org/&quot;&gt;nginx&lt;/a&gt; com PHP e uma solu&#231;&#227;o de NoSQL. Eu expliquei a ele que era uma ideia mais complicada do que precisava. O ideal, nessa situa&#231;&#227;o, &#233; dividir os problemas. O nginx poderia sozinho cuidar dos redirects, sem PHP, com uma performance impressionante. E ele poderia em seguida fazer algo que lesse o log do pr&#243;prio nginx e enviasse os dados dados ao Clicky.&lt;/p&gt;
&lt;p&gt;Meu amigo programa bem em PHP, ent&#227;o vamos fazer oq ue pudermos nessa linguagem. Veja um exemplo simples de como isso funcionaria: podemos criar um shell script simples que vai simplesmente executar um tail -f no log do nginx e redirecionar a sa&#237;da para um script PHP. &lt;/p&gt;
&lt;p&gt;O comando tail -f &#233; muito interessante. Deixe uma janela de terminal aberta em seu Linux com:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tail -f /var/log/syslog&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;Voc&#234; vai ver que o tail, com -f, imprime o final do arquivo mas n&#227;o sai. Ele fica monitorando o arquivo e quando novas linhas s&#227;o acrescentadas, ele as envia para a sa&#237;da padr&#227;o (nesse caso, a tela.)&lt;/p&gt;
&lt;p&gt;Ent&#227;o nosso shell script, chamado monitor.sh, ter&#225; o seguinte conte&#250;do (troque o caminho do arquivo de log pelo caminho onde ele fica em seu sistema):&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tail -f /var/log/nginx/access.log | php monitor.php&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Isso vai manter o script rodando, enviando cada nova linha no log para o monitor.php. Cada vez que o nginx processa uma requisi&#231;&#227;o ele envia nova linha para esse arquivo. O monitor.php pode ter algo assim:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?
$stdin = fopen('php://stdin', 'r');

while($l=trim(fgets($stdin))){
  // Aqui $l cont&#233;m uma linha do log do nginx.
  // Fa&#231;a o que quiser com isso. Como exemplo
  // vou s&#243; tratar os dados e imprimir.
  $l=split(';',preg_replace('/( |\t)+/',';',$l));
  $l[3]=substr($l[3],1);
  $l[5]=substr($l[5],1);
  if($l[5]=='GET' or $l[5]=='POST')
    echo &quot;$l[0] $l[3] $l[5] $l[6]\n&quot;;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Por fim, falta deixar isso rodando. O jeito mais simples &#233; deixar uma sess&#227;o de screen aberta com o comando. Basta rodar o comando screen, executar o monitor.sh no shell que vai se abrir e sair com CTRL+D. Claro que h&#225; jeitos melhores de deixar isso rodando. O ideal &#233; transformar esse script num daemon. Mas a solu&#231;&#227;o com screen &#233; suficiente para iniciar no assunto.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JAB&#193;&lt;/strong&gt;: para entender melhor os detalhes e aprender mais truques como esse, v&#225; ao &lt;a href=&quot;http://linux.visie.com.br/&quot;&gt;Workshop de Linux para Desenvolvedores&lt;/a&gt;.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/f_8WQgFy97gXVKWjoB4SXfnTtLM/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/f_8WQgFy97gXVKWjoB4SXfnTtLM/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/f_8WQgFy97gXVKWjoB4SXfnTtLM/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/f_8WQgFy97gXVKWjoB4SXfnTtLM/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=AcgkNf18sNc:IdDjADTTpAU:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=AcgkNf18sNc:IdDjADTTpAU:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=AcgkNf18sNc:IdDjADTTpAU:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Site Recomendado: TidBits</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/FyGrJNUSiHI/"/>
		<id>http://elcio.com.br/?p=3640</id>
		<updated>2012-04-26T20:56:24+00:00</updated>
		<content type="html">&lt;p&gt;A recomenda&#231;&#227;o desse m&#234;s &#233; o &lt;a href=&quot;http://www.tidbits.com.br/&quot;&gt;TidBits&lt;/a&gt;. O Danilo tem feito interessant&#237;ssimos experimentos com HTML5 e CSS3, sempre postando o c&#243;digo e explicando. Al&#233;m disso, tem dicas, not&#237;cias e outros assuntos interessantes, principalmente para quem trabalha com front-end.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/_4tc6m0ngbcAV8zEK9kdgM_K8kg/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/_4tc6m0ngbcAV8zEK9kdgM_K8kg/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/_4tc6m0ngbcAV8zEK9kdgM_K8kg/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/_4tc6m0ngbcAV8zEK9kdgM_K8kg/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=FyGrJNUSiHI:fZ-XLwhBxlw:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=FyGrJNUSiHI:fZ-XLwhBxlw:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=FyGrJNUSiHI:fZ-XLwhBxlw:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">CairoPlot 1.1</title>
		<link href="http://linil.wordpress.com/2008/09/16/cairoplot-11/"/>
		<id>http://linil.wordpress.com/?p=139</id>
		<updated>2012-04-24T03:31:33+00:00</updated>
		<content type="html">&lt;p&gt;&lt;span&gt;&lt;em&gt;CairoPlot is on &lt;a href=&quot;http://rodrigoaraujo01.github.com/cairoplot/&quot;&gt;&lt;span&gt;GitHub&lt;/span&gt;&lt;/a&gt;!&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;CairoPlot now has a Mailing List! For more information, refer to:&lt;/span&gt;&lt;/em&gt; &lt;a href=&quot;http://linil.wordpress.com/2009/01/29/cairoplot-has-a-mailing-list/&quot;&gt;this post&lt;/a&gt;.&lt;br /&gt;
&lt;img class=&quot;aligncenter&quot; src=&quot;https://launchpadlibrarian.net/16773251/brand.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;v1.1 is out!!&lt;/h2&gt;
&lt;p&gt;CairoPlot is an API written in Python and uses PyCairo to plot 6 kinds of graphics.&lt;br /&gt;
Lots of changes happened since last post, CairoPlot now has a Logo, it&amp;#8217;s not just me anymore, we have an all new repository and lots of new functions and options. Read the rest of the post to see all the changes.&lt;/p&gt;
&lt;h3&gt;LOGO&lt;/h3&gt;
&lt;p&gt;As you all must&amp;#8217;ve seen on the beginning of this text, CairoPlot now has a logo! Actually I did &lt;a href=&quot;http://rodrigoaraujo.deviantart.com/art/CairoPlot-Logo-94827993&quot;&gt;two&lt;/a&gt; but I ended up choosing this one. What do you guys think?&lt;/p&gt;
&lt;h3&gt;CONTRIBUTOR&lt;/h3&gt;
&lt;p&gt;It&amp;#8217;s not just me anymore! I&amp;#8217;m happy to say that this release had GREAT help from Jo&#227;o S. O. Bueno. It was his idea to change the code into object oriented style which turned out to be a great option for the project.&lt;/p&gt;
&lt;h3&gt;NEW REPOSITORY&lt;/h3&gt;
&lt;p&gt;I&amp;#8217;d like to apologize to everyone who&amp;#8217;s been using v1.0 since June. Many changes happened and no one even knew they were there. By the time the repositories where changed, Jo&#227;o had just started helping the project and lots of things were incomplete. After that, one change lead to the other and the only stable release came out now. Again, I&amp;#8217;m sorry but I believe you all will be pleased by the changes.&lt;br /&gt;
To visit the new repository, just hit &lt;a href=&quot;https://launchpad.net/cairoplot&quot;&gt;CairoPlot Launchpad&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;HOW TO DOWNLOAD&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;CairoPlot is on&#160;&lt;a href=&quot;http://rodrigoaraujo01.github.com/cairoplot/&quot;&gt;GitHub&lt;/a&gt;!&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;HOW TO HELP&lt;/h3&gt;
&lt;p&gt;I believe CairoPlot can grow a lot more, so if you think you can help, please contact me at alf.rodrigo@gmail.com.&lt;/p&gt;
&lt;h3&gt;NEWS&lt;/h3&gt;
&lt;p&gt;Now for the exciting ChangeLog.&lt;br /&gt;
All the &lt;a href=&quot;http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/&quot;&gt;old functions&lt;/a&gt; are still supported with some little but important changes.&lt;/p&gt;
&lt;h2&gt;overall changes&lt;/h2&gt;
&lt;p&gt;Every chart now has an associated class and a function.&lt;br /&gt;
The functions where kept to maintain backward compatibility and allow for easy use of the api.&lt;br /&gt;
The classes, however, provide much more customization as access to the cairo context or its surface.&lt;br /&gt;
All functions still have the background parameter, but now it supports colors (in tuple form, red = (255, 0, 0)) and Cairo Linear Gradients. The None option is still present and will generate the gray to white gradient of the previous version.&lt;/p&gt;
&lt;h2&gt;more output options&lt;/h2&gt;
&lt;p&gt;CairoPlot now outputs images on the following formats: pdf, ps, png and svg thanks to Jo&#227;o.&lt;/p&gt;
&lt;h2&gt;dot_line_plot&lt;/h2&gt;
&lt;p&gt;Dot Line Plot kept most of its functions but got a little more customizable.&lt;br /&gt;
&lt;img class=&quot;aligncenter size-full wp-image-71&quot; src=&quot;http://linil.files.wordpress.com/2008/06/cairoplot_dotlineplot.png?w=500&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
dot_line_plot (name,
               data,
               width,
               height,
               background = None,
               border = 0,
               axis = False,
               grid = False,
               dots = False,
               h_labels = None,
               v_labels = None,
               h_bounds = None,
               v_bounds = None)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt; dots&lt;/em&gt;&lt;/span&gt; &amp;#8211; new parameter added to determine whether or not the dots are needed;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; h_legend and v_legend&lt;/em&gt;&lt;/span&gt; &amp;#8211; got renamed to h_labels and v_labels;&lt;br /&gt;
&lt;em&gt;&lt;span&gt;Note:&lt;/span&gt;&lt;/em&gt; As this function&amp;#8217;s been present since the last version, please refer to &lt;a href=&quot;http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/&quot;&gt;the latest post&lt;/a&gt; for more detailed information.&lt;/p&gt;
&lt;h2&gt;pie_plot&lt;/h2&gt;
&lt;p&gt;The old Pizza Plot got renamed and revamped into the all new Pie Plot&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/pie_blog1.png&quot;&gt;&lt;img class=&quot;aligncenter size-medium wp-image-149&quot; title=&quot;pie_plot&quot; src=&quot;http://linil.files.wordpress.com/2008/09/pie_blog1.png?w=300&amp;h=200&quot; alt=&quot;&quot; width=&quot;300&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
pie_plot(name,
           data,
           width,
           height,
           background = None,
           gradient = False,
           shadows = False,
           colors = None)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt; gradient&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the slices are painted with gradient colors;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; shadows&lt;/em&gt;&lt;/span&gt; &amp;#8211; Now, it&amp;#8217;s possible to draw a shadow behind the pie;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; colors&lt;/em&gt;&lt;/span&gt; &amp;#8211; And the user can pass a pre-selected list of colors for the slices;&lt;br /&gt;
&lt;em&gt;&lt;span&gt;Note:&lt;/span&gt;&lt;/em&gt; As this function&amp;#8217;s been present since the last version, please refer to &lt;a href=&quot;http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/&quot;&gt;the latest post&lt;/a&gt; for more detailed information.&lt;/p&gt;
&lt;h2&gt;gantt_chart&lt;/h2&gt;
&lt;p&gt;No cosmetic changes on this one, but as the rest of the api, it got refactored on OO and the overall changes also apply.&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
gantt_chart(name,
            pieces,
            width,
            height,
            h_labels,
            v_labels,
            colors)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt; h_legend and v_legend&lt;/em&gt;&lt;/span&gt; &amp;#8211; got renamed to h_labels and v_labels;&lt;br /&gt;
&lt;em&gt;&lt;span&gt;Note:&lt;/span&gt;&lt;/em&gt; As this function&amp;#8217;s been present since the last version, please refer to &lt;a href=&quot;http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/&quot;&gt;the latest post&lt;/a&gt; for more detailed information.&lt;/p&gt;
&lt;h2&gt;donut_plot&lt;/h2&gt;
&lt;p&gt;Used to plot donut graphics.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/donut_blog.png&quot;&gt;&lt;img class=&quot;aligncenter size-medium wp-image-154&quot; title=&quot;donut_blog&quot; src=&quot;http://linil.files.wordpress.com/2008/09/donut_blog.png?w=300&amp;h=200&quot; alt=&quot;&quot; width=&quot;300&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
donu_plot(name,
                data,
                width,
                height,
                background = None,
                gradient = False,
                shadows = False,
                colors = None,
                inner_radius = -1)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;name&lt;/span&gt;&lt;/em&gt; &amp;#8211; Name of the desired output file;&lt;br /&gt;
&lt;em&gt;&lt;span&gt;data&lt;/span&gt;&lt;/em&gt; &amp;#8211; The list, list of lists or dictionary holding the data to be plotted;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; width, height&lt;/em&gt;&lt;/span&gt; &amp;#8211; Dimensions of the output image;&lt;br /&gt;
&lt;span&gt;&lt;em&gt;background&lt;/em&gt;&lt;/span&gt; &amp;#8211; A 3 element tuple representing the rgb color expected for the background or a new cairo linear gradient. If left None, a gray to white gradient will be generated;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; gradient&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the slices are painted with gradient colors;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; shadows&lt;/em&gt;&lt;/span&gt; &amp;#8211; It&amp;#8217;s possible to draw a shadow behind the donut;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; colors&lt;/em&gt;&lt;/span&gt; &amp;#8211; Pre-selected list of colors for the slices;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; inner_radius&lt;/em&gt;&lt;/span&gt; &amp;#8211; The radius of the donut&amp;#8217;s inner circle;&lt;/p&gt;
&lt;p&gt;Example of use:&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
teste_data = {&amp;quot;carl&amp;quot; : 123, &amp;quot;fawn&amp;quot; : 489, &amp;quot;susan&amp;quot; : 890 , &amp;quot;lavon&amp;quot; : 235}
CairoPlot.donut_plot(&amp;quot;donut_teste.png&amp;quot;, teste_data, 500, 500)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/donut_teste.png&quot;&gt;&lt;img class=&quot;aligncenter size-medium wp-image-167&quot; title=&quot;donut_teste&quot; src=&quot;http://linil.files.wordpress.com/2008/09/donut_teste.png?w=257&amp;h=257&quot; alt=&quot;&quot; width=&quot;257&quot; height=&quot;257&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;function_plot&lt;/h2&gt;
&lt;p&gt;Used to plot function graphics.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/function_blog1.png&quot;&gt;&lt;img class=&quot;aligncenter size-large wp-image-159&quot; title=&quot;function plog&quot; src=&quot;http://linil.files.wordpress.com/2008/09/function_blog1.png?w=500&amp;h=200&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
function_plot (name,
                    data,
                    width,
                    height,
                    background = None,
                    border = 0,
                    axis = False,
                    grid = False,
                    dots = False,
                    h_labels = None,
                    v_labels = None,
                    h_bounds = None,
                    v_bounds = None,
                    step = 1,
                    discrete = False)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;name&lt;/em&gt;&lt;/span&gt; &amp;#8211; Name of the desired output file.;&lt;br /&gt;
&lt;span&gt;&lt;em&gt;data&lt;/em&gt;&lt;/span&gt; &amp;#8211; The function to be plotted;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; width, height&lt;/em&gt;&lt;/span&gt; &amp;#8211; Dimensions of the output image;&lt;br /&gt;
&lt;em&gt; &lt;span&gt;background&lt;/span&gt;&lt;/em&gt; &amp;#8211; A 3 element tuple representing the rgb color expected for the background or a new cairo linear gradient. If left None, a gray to white gradient will be generated;&lt;br /&gt;
&lt;span&gt;&lt;em&gt;border&lt;/em&gt;&lt;/span&gt; &amp;#8211; Distance in pixels of a square border into which the graphics will be drawn;&lt;br /&gt;
&lt;span&gt;&lt;em&gt;axis&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the axis are to be drawn;&lt;br /&gt;
&lt;span&gt;&lt;em&gt;grid&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the grids is to be drawn;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; dots&lt;/em&gt;&lt;/span&gt; &amp;#8211; new parameter added to determine whether or not the dots are needed;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; h_labels, v_labels&lt;/em&gt;&lt;/span&gt; &amp;#8211; lists of strings containing the horizontal and vertical labels for the axis;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; h_bounds, v_bounds&lt;/em&gt;&lt;/span&gt; &amp;#8211; tuples containing the lower and upper value bounds for the data to be plotted;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; step&lt;/em&gt;&lt;/span&gt; &amp;#8211; the horizontal distance from one point to the other. The smaller, the smoother the curve will be;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; discrete&lt;/em&gt;&lt;/span&gt; &amp;#8211; whether or not the function should be plotted in discrete format.&lt;/p&gt;
&lt;p&gt;Example of use:&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
data = lambda x : x**2
CairoPlot.function_plot('function_teste.png', data, 400, 300, grid = True, h_bounds=(-10,10), step = 0.1)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/function.png&quot;&gt;&lt;img class=&quot;aligncenter size-medium wp-image-173&quot; title=&quot;function_teste&quot; src=&quot;http://linil.files.wordpress.com/2008/09/function.png?w=257&amp;h=193&quot; alt=&quot;&quot; width=&quot;257&quot; height=&quot;193&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;bar_plot&lt;/h2&gt;
&lt;p&gt;Used to plot bar graphics.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/bar_blog1.png&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-163&quot; title=&quot;bar plot&quot; src=&quot;http://linil.files.wordpress.com/2008/09/bar_blog1.png?w=500&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
bar_plot (name,
              data,
              width,
              height,
              background = None,
              border = 0,
              axis = False,
              grid = False,
              dots = False,
              h_labels = None,
              v_labels = None,
              h_bounds = None,
              v_bounds = None,
              step = 1,
              discrete = False)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt; name&lt;/em&gt;&lt;/span&gt; &amp;#8211; Name of the desired output file.;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; data&lt;/em&gt;&lt;/span&gt; &amp;#8211; The function to be plotted;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; width, height&lt;/em&gt;&lt;/span&gt; &amp;#8211; Dimensions of the output image;&lt;br /&gt;
&lt;em&gt; &lt;span&gt; background&lt;/span&gt;&lt;/em&gt; &amp;#8211; A 3 element tuple representing the rgb color expected for the background or a new cairo linear gradient. If left None, a gray to white gradient will be generated;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; border&lt;/em&gt;&lt;/span&gt; &amp;#8211; Distance in pixels of a square border into which the graphics will be drawn;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; grid&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the grids is to be drawn;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; rounded_corners&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the bars should have rounded corners;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; three_dimension&lt;/em&gt;&lt;/span&gt; &amp;#8211; Whether or not the bars should be drawn in pseudo 3D;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; h_labels, v_labels&lt;/em&gt;&lt;/span&gt; &amp;#8211; lists of strings containing the horizontal and vertical labels for the axis;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; h_bounds, v_bounds&lt;/em&gt;&lt;/span&gt; &amp;#8211; tuples containing the lower and upper value bounds for the data to be plotted;&lt;br /&gt;
&lt;span&gt;&lt;em&gt; colors&lt;/em&gt;&lt;/span&gt; &amp;#8211; List containing the colors expected for each of the bars.&lt;/p&gt;
&lt;p&gt;Examples of use:&lt;/p&gt;
&lt;p&gt;&lt;pre class=&quot;brush: python;&quot;&gt;
data = [3,1,10,2]
CairoPlot.bar_plot ('bar_teste.png', data, 400, 300, border = 20, grid = True, rounded_corners = True)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Result:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linil.files.wordpress.com/2008/09/bar2.png&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-175&quot; title=&quot;bar_teste&quot; src=&quot;http://linil.files.wordpress.com/2008/09/bar2.png?w=500&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;REMEMBER!&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;CairoPlot is on&#160;&lt;a href=&quot;http://rodrigoaraujo01.github.com/cairoplot/&quot;&gt;GitHub&lt;/a&gt;!&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So, I hope you liked it. It&amp;#8217;s been a while I&amp;#8217;ve been trying to finish this release and I&amp;#8217;m very proud of what it has become. Don&amp;#8217;t forget to download and test it. In case any bugs surface or if you have any questions or suggestion, don&amp;#8217;t be afraid to use the &lt;a href=&quot;https://bugs.launchpad.net/cairoplot&quot;&gt;bug tracker&lt;/a&gt; or the &lt;a href=&quot;https://answers.launchpad.net/cairoplot&quot;&gt;answers&lt;/a&gt; options on the site &lt;a href=&quot;https://launchpad.net/cairoplot&quot;&gt;CairoPlot Launchpad&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks for the interest.&lt;/p&gt;
&lt;br /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/categories/linil.wordpress.com/139/&quot; /&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/tags/linil.wordpress.com/139/&quot; /&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/linil.wordpress.com/139/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/linil.wordpress.com/139/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=linil.wordpress.com&amp;blog=2521259&amp;post=139&amp;subd=linil&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>Rodrigo Araujo</name>
			<uri>http://linil.wordpress.com</uri>
		</author>
		<source>
			<title type="html">&#187; Python</title>
			<link rel="self" href="http://linil.wordpress.com/category/python/feed/atom/"/>
			<id>http://linil.wordpress.com/feed/atom/</id>
			<updated>2012-04-24T03:44:38+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Trabalhar para empresa de fora do Brasil</title>
		<link href="http://feedproxy.google.com/~r/pyAvelino/~3/I4lNTpZZQQ8/"/>
		<id>http://avelino.us/?p=149</id>
		<updated>2012-04-20T22:13:15+00:00</updated>
		<content type="html">&lt;p&gt;&lt;a href=&quot;http://avelino.us/wp-content/uploads/2012/04/London_Bus_Big_Ben_narrowweb__300x4000.jpg&quot;&gt;&lt;img class=&quot;size-medium wp-image-152 alignleft&quot; title=&quot;LONDON GENERIC PIC WARRREN HACKSHALL AFR FIRST USE ONLY 060710&quot; src=&quot;http://avelino.us/wp-content/uploads/2012/04/London_Bus_Big_Ben_narrowweb__300x4000-225x300.jpg&quot; alt=&quot;Londres &#233; a capital e a maior e mais importante cidade da Inglaterra e do Reino Unido.&quot; width=&quot;225&quot; height=&quot;300&quot; /&gt;&lt;/a&gt;O tema &#233; muito abrangente mas vou focar justamente para a &#225;rea tecnologia onde temos a possibilidade de trabalhar remoto (vulgo home office, que &#233; um outro tema que gera muita polemica).&lt;/p&gt;
&lt;p&gt;Hoje fecha um total de 3 dias trabalhando na empresa &lt;a title=&quot;Mochii&quot; href=&quot;http://mochii.co.uk/&quot; target=&quot;_blank&quot;&gt;Mochii&lt;/a&gt;&#160;(Realmente achei o site da empresa muito nerd e extremamente diferente, esse e outros motivo me fez trabalhar com eles) e durante esses tr&#234;s dias tive uma&#160;&#243;tima&#160;experiencia para compartilhar.&lt;/p&gt;
&lt;p&gt;Primeiro que o dono da empresa &#233; muito acess&#237;vel, sem essa frescura de&#160;hierarquia (N&#227;o que eu ache totalmente&#160;hierarquia desnecess&#225;rio, mas em alguns caso ao meu ver n&#227;o precisaria de tanta burocracia).&lt;/p&gt;
&lt;p&gt;Segundo que o time de desenvolvimento de l&#225; &#233; 100% aberto a ideias e a criticas (logicamente que criticas construtivas e que saiba conversa sobre o porque n&#227;o concorda com determinada parte do c&#243;digo), muito diferente de alguns desenvolvedores no Brasil (Sei que tem em outros lugares do mundo mas como trabalhei muito tempo no Brasil estou usando como referencia) que se apega com c&#243;digo desenvolvido.&lt;/p&gt;
&lt;p&gt;Uma coisa que realmente me deixou muito surpreso foi em rela&#231;&#227;o a cobran&#231;a de como esta indo a tarefa que eu (Thiago Avelino) assumi, o dono da empresa chegou para mim e falou que eu deveria conversa com um funcionario que saberia explicar melhor sobre o porque esta usando a tecnologia X, Y e Z, depois do lider do desenvolvimento me explicado foi atribuido uma tarefa e n&#227;o fui cobrado nem uma vez sobre a tarefa, realmente isso &#233; muito diferente aqui no Brasil, principalmente quando um desenvolvedor novo entra em um time, geralmente tem sempre um cara no time que fica pergunta &amp;#8220;&lt;em&gt;e ai esta entendendo?&lt;/em&gt;&amp;#8220;, ao meu ver isso tem o seu lado bom e consequentemente o seu lado ruim.&lt;br /&gt;
O lado bom &#233; que tem a intera&#231;&#227;o do time com o novo desenvolvedor, mais isso acaba ficando chato pois se o novo desenvolvedor n&#227;o esta entendo ele vai ficar com vergonha (ou alguma coisa do genero) de se expressa falando que n&#227;o esta entendo alguma parte do fluxo do projeto ou mesmo c&#243;digo.&lt;/p&gt;
&lt;p&gt;Poderia falar mais 1001 experi&#234;ncia que tive essa semana, mas vou ir gerando blog post com os passar das semanas, assim posso ir aprofundando cada dia mais da&#160;experi&#234;ncia vivida.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Realmente vale apena trabalhar para uma empresa de fora do Brasil.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/eVl7BzBKDha8L-__N-DXMrE4pkk/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/eVl7BzBKDha8L-__N-DXMrE4pkk/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/eVl7BzBKDha8L-__N-DXMrE4pkk/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/eVl7BzBKDha8L-__N-DXMrE4pkk/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://feeds.feedburner.com/~r/pyAvelino/~4/I4lNTpZZQQ8&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt;</content>
		<author>
			<name>Thiago Avelino</name>
			<email>thiagoavelinoster@gmail.com</email>
			<uri>http://avelino.us</uri>
		</author>
		<source>
			<title type="html">Thiago Avelino</title>
			<subtitle type="html">Python, MongoDB, Node.js, C, C++, NoSQL</subtitle>
			<link rel="self" href="http://feeds.feedburner.com/pyavelino"/>
			<id>tag:blogger.com,1999:blog-2742862280909730250</id>
			<updated>2012-05-07T23:44:28+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">World Plone Day Bras&#237;lia</title>
		<link href="http://associacao.python.org.br/eventos/plonebr/2012/world-plone-day-brasilia"/>
		<id>http://associacao.python.org.br/eventos/plonebr/2012/world-plone-day-brasilia</id>
		<updated>2012-04-20T18:37:06+00:00</updated>
		<content type="html">&lt;table class=&quot;wiki&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;In&#237;cio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Fim&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Tema&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Palestrante&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Institui&#231;&#227;o&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9h&lt;/td&gt;
&lt;td&gt;9h15&lt;/td&gt;
&lt;td&gt;Abertura&lt;/td&gt;
&lt;td&gt;Haroldo Tajra e Ricardo Ramos&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.interlegis.leg.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Interlegis&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9h30&lt;/td&gt;
&lt;td&gt;10h10&lt;/td&gt;
&lt;td&gt;O Estado do Plone&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;wiki&quot; href=&quot;http://colab.interlegis.leg.br/wiki/WorldPloneDay#Andr&#233;Nogueira&quot;&gt;Andr&#233; Nogueira&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://plone.org/foundation&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Plone Foundation&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10h10&lt;/td&gt;
&lt;td&gt;10h50&lt;/td&gt;
&lt;td&gt;Editor Visual da Home do Portal da C&#226;mara dos Deputados&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;wiki&quot; href=&quot;http://colab.interlegis.leg.br/wiki/WorldPloneDay#F&#225;bioSurragedeMedeiros&quot;&gt;F&#225;bio Surrage de Medeiros&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www2.camara.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;C&#226;mara dos Deputados&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10h50&lt;/td&gt;
&lt;td&gt;11h20&lt;/td&gt;
&lt;td&gt;7 da noite em Bras&#237;lia - O Plone gerenciando a reda&#231;&#227;o multim&#237;dia da EBC Servi&#231;os&lt;/td&gt;
&lt;td&gt;Luis Fl&#225;vio Loreto da Rocha&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.ebc.com.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;EBC&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11h20&lt;/td&gt;
&lt;td&gt;12h&lt;/td&gt;
&lt;td&gt;Programando Plone para o Governo&lt;/td&gt;
&lt;td&gt;Rodrigo Castardo&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.liberiun.com/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Liberiun&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12h&lt;/td&gt;
&lt;td&gt;14h&lt;/td&gt;
&lt;td&gt;Almo&#231;o&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14h&lt;/td&gt;
&lt;td&gt;14h50&lt;/td&gt;
&lt;td&gt;Aceleradores HTTP e Cluster Zeo&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;wiki&quot; href=&quot;http://colab.interlegis.leg.br/wiki/WorldPloneDay#RobertoGeraldoPimentaRibeiroJ&#250;nior&quot;&gt;Roberto Geraldo Pimenta Ribeiro J&#250;nior&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.senado.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Senado Federal&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14h50&lt;/td&gt;
&lt;td&gt;15h20&lt;/td&gt;
&lt;td&gt;Plone no Interlegis: muito al&#233;m do portal&lt;/td&gt;
&lt;td&gt;Jean Ferri&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.interlegis.leg.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Interlegis&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15h20&lt;/td&gt;
&lt;td&gt;16h20&lt;/td&gt;
&lt;td&gt;Debate: Compartilhamento de c&#243;digos no Governo&lt;/td&gt;
&lt;td&gt;Corinto Meffe, Djalma Valois, Marcos Mazoni, Paulo Maia&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.planejamento.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;MPOG&lt;/a&gt;,&amp;nbsp;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.iti.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;ITI&lt;/a&gt;,&amp;nbsp;&lt;a class=&quot;ext-link&quot; href=&quot;https://www.serpro.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Serpro&lt;/a&gt;,&amp;nbsp;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.caixa.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Caixa Federal&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16h20&lt;/td&gt;
&lt;td&gt;16h40&lt;/td&gt;
&lt;td&gt;Intervalo - coffee break&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16h50&lt;/td&gt;
&lt;td&gt;17h30&lt;/td&gt;
&lt;td&gt;Novo portal de not&#237;cias da Ag&#234;ncia Senado&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;wiki&quot; href=&quot;http://colab.interlegis.leg.br/wiki/WorldPloneDay#GlebsonMouradaSilva&quot;&gt;Glebson Moura da Silva&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.senado.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Senado Federal&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;17h30&lt;/td&gt;
&lt;td&gt;18h&lt;/td&gt;
&lt;td&gt;Intranet Caixa&lt;/td&gt;
&lt;td&gt;Pablo Nogueira&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.caixa.gov.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Caixa Federal&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;18h&lt;/td&gt;
&lt;td&gt;18h15&lt;/td&gt;
&lt;td&gt;Simplificando o Plone&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;wiki&quot; href=&quot;http://colab.interlegis.leg.br/wiki/WorldPloneDay#Andr&#233;Nogueira&quot;&gt;Andr&#233; Nogueira&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a class=&quot;ext-link&quot; href=&quot;http://www.simplesconsultoria.com.br/&quot;&gt;&lt;span class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/span&gt;Simples Consultoria&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</content>
		<author>
			<name>Eventos da APyB</name>
			<uri>http://associacao.python.org.br</uri>
		</author>
		<source>
			<title type="html">Listagem de Pr&#243;ximos Eventos APyB e Python</title>
			<subtitle type="html">Eventos da APyB e relacionados a Python</subtitle>
			<link rel="self" href="http://associacao.python.org.br/eventos/listagem/RSS"/>
			<id>http://associacao.python.org.br/eventos/listagem/RSS</id>
			<updated>2012-04-26T15:45:00+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">World Plone Day by GruPy-SP</title>
		<link href="http://associacao.python.org.br/eventos/grupos-regionais/sao-paulo/world-plone-day-by-grupy-sp"/>
		<id>http://associacao.python.org.br/eventos/grupos-regionais/sao-paulo/world-plone-day-by-grupy-sp</id>
		<updated>2012-04-20T18:31:24+00:00</updated>
		<content type="html">&lt;p&gt;Encontro do GruPy-SP em associa&#231;&#227;o com o Word Plone Day.&lt;/p&gt;
&lt;p&gt;Como parte do World Plone Day, JS e &#201;rico Andrei v&#227;o apresentar o Plone para&amp;nbsp;&lt;br /&gt;o GruPy-SP.&lt;/p&gt;
&lt;p&gt;&#201; uma apresenta&#231;&#227;o voltada para o p&#250;blico t&#233;cnico que abordar&#225;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Onde n&#227;o usar Plone&lt;/li&gt;&lt;li&gt;Onde usar Plone&lt;/li&gt;&lt;li&gt;Como integrar Plone com ____ (preencha com seu framework favorito)&lt;/li&gt;&lt;li&gt;Oportunidades para desenvolvedores Python&lt;/li&gt;&lt;/ul&gt;</content>
		<author>
			<name>Eventos da APyB</name>
			<uri>http://associacao.python.org.br</uri>
		</author>
		<source>
			<title type="html">Listagem de Pr&#243;ximos Eventos APyB e Python</title>
			<subtitle type="html">Eventos da APyB e relacionados a Python</subtitle>
			<link rel="self" href="http://associacao.python.org.br/eventos/listagem/RSS"/>
			<id>http://associacao.python.org.br/eventos/listagem/RSS</id>
			<updated>2012-04-26T15:45:00+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">Image</title>
		<link href="http://pugpe.wordpress.com/2012/04/19/convite-para-o-hackday-do-grupo-de-usuarios-de-python-de-pernambuco-no-ifpe-2804-a-partir-das-0800/"/>
		<id>http://pugpe.wordpress.com/2012/04/19/convite-para-o-hackday-do-grupo-de-usuarios-de-python-de-pernambuco-no-ifpe-2804-a-partir-das-0800/</id>
		<updated>2012-04-19T18:44:14+00:00</updated>
		<content type="html">&lt;p&gt;Ol&#225; pessoal,&lt;/p&gt;
&lt;p&gt;Estamos divulgando o terceiro evento do PUG-PE o&lt;a href=&quot;http://soc.pug.pe/&quot;&gt; HackyDay do Summer-of-Code&lt;/a&gt;. A id&#233;ia &#233; juntar uma galera que queira aprender a programar, que queira desenvolver ou at&#233; trocar id&#233;ias com o pessoal no local em variados projetos open-source. Muita programa&#231;&#227;o, comida e at&#233; brindes ser&#227;o distribu&#237;dos durante todo o evento.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://pugpe.files.wordpress.com/2012/04/screen-shot-2012-04-19-at-3-33-54-pm1.png&quot;&gt;&lt;img class=&quot; wp-image aligncenter&quot; src=&quot;http://pugpe.files.wordpress.com/2012/04/screen-shot-2012-04-19-at-3-33-54-pm1.png?w=389&amp;h=170&quot; alt=&quot;Image&quot; width=&quot;389&quot; height=&quot;170&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Como participar ?&lt;/strong&gt; &#201; simples basta comparecer no dia e trazer muita vontade de programar! &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;Se tiver interesse j&#225; pode ir l&#225; na pr&#243;pria p&#225;gina do evento e selecionar os projetos ou lan&#231;ar algum novo projeto que queira codificar. Simples, assim!&lt;/p&gt;
&lt;p&gt;O evento ser&#225; no&lt;strong&gt; Instituto Federal de Pernambuco, IFPE &#160;dia 28/04 (Abril) S&#225;bado- &#160;a partir das 08:00.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Evento &#233; gratuito! Compare&#231;am e venham conhecer Python ou por suas id&#233;ias em a&#231;&#227;o com o pessoal rochedo que j&#225; sabe Python! &#160;Quem sabe n&#227;o saem futuras startups deste encontro ?&lt;/p&gt;
&lt;p&gt;Mais informa&#231;&#245;es no site: &#160;&lt;a href=&quot;http://soc.pug.pe/&quot;&gt;http://soc.pug.pe/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Compare&#231;am!&lt;/p&gt;
&lt;p&gt;Atenciosamente,&lt;/p&gt;
&lt;p&gt;Equipe PUG-PE&lt;/p&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/pugpe.wordpress.com/901/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/pugpe.wordpress.com/901/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=pugpe.wordpress.com&amp;blog=12164117&amp;post=901&amp;subd=pugpe&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PUG - PE</name>
			<uri>http://pugpe.wordpress.com</uri>
		</author>
		<source>
			<title type="html">PUG-PE</title>
			<subtitle type="html">Python em Pernambuco</subtitle>
			<link rel="self" href="http://pugpe.wordpress.com/feed/"/>
			<id>http://pugpe.wordpress.com/feed/</id>
			<updated>2012-05-03T03:44:26+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">HTTP API WordPress</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/3Q8rQ8xkNA8/"/>
		<id>http://elcio.com.br/?p=3668</id>
		<updated>2012-04-15T14:21:21+00:00</updated>
		<content type="html">&lt;p&gt;Voc&#234; est&#225; desenvolvendo um plugin ou tema para WordPress e precisa fazer uma conex&#227;o HTTP? N&#227;o use fopen, curl, file_get_contents, etc. Use a &lt;a href=&quot;http://codex.wordpress.org/HTTP_API&quot;&gt;HTTP API&lt;/a&gt; do WordPress.&lt;/p&gt;
&lt;p&gt;A HTTP API &#233; simples de usar, muito bem implementada e tem excelente performance.&#160; E se um dia voc&#234; precisar hospedar seu site num servidor debaixo de um proxy, n&#227;o vai precisar reescrever seu c&#243;digo. Ao configurar o proxy no wp-config.php, tudo vai funcionar.&lt;/p&gt;
&lt;p&gt;Veja um exemplo do uso da HTTP API:&lt;/p&gt;
&lt;pre&gt;$content=wp_remote_retrieve_body(
           wp_remote_get('http://visie.com.br/'));&lt;/pre&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/EANHt5qNAuVIw_LDWhzQXfmksJg/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/EANHt5qNAuVIw_LDWhzQXfmksJg/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/EANHt5qNAuVIw_LDWhzQXfmksJg/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/EANHt5qNAuVIw_LDWhzQXfmksJg/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=3Q8rQ8xkNA8:_yNm408TRp4:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=3Q8rQ8xkNA8:_yNm408TRp4:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=3Q8rQ8xkNA8:_yNm408TRp4:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Node.js onde usar?</title>
		<link href="http://feedproxy.google.com/~r/pyAvelino/~3/T6JTchq82gU/"/>
		<id>http://avelino.us/?p=124</id>
		<updated>2012-04-10T04:13:18+00:00</updated>
		<content type="html">&lt;p&gt;&lt;img class=&quot;aligncenter size-medium wp-image-131&quot; title=&quot;nodejs&quot; src=&quot;http://avelino.us/wp-content/uploads/2012/04/nodejs-300x168.png&quot; alt=&quot;&quot; width=&quot;300&quot; height=&quot;168&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Ultimamente estou estudando bastante Javascript para colocar algumas aplica&#231;&#245;es em Node.js no ar, ate que tive a minha primeira necessidade real de usar &lt;a title=&quot;Node.js project&quot; href=&quot;http://nodejs.org&quot;&gt;Nodejs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Na &lt;a href=&quot;http://nodegrid.com&quot;&gt;Nodegrid&lt;/a&gt; tivemos a necessidade fazer grande processamento ass&#237;ncrono, temos um servidor de cache que foi desenvolvimento por necessidade de armazenamento e controle do que esta em cache e tempo para expirar o mesmo, poderia ser usado memcache mas a &lt;a href=&quot;http://nodegrid.com&quot;&gt;Nodegrid&lt;/a&gt; esta fazendo um servi&#231;o de hosting de memcache, com isso ter&#237;amos o problema de concorr&#234;ncia de nome dentro do banco chave e valor (Memcache).&lt;/p&gt;
&lt;p&gt;No case que tenho com a &lt;a href=&quot;http://nodegrid.com&quot;&gt;Nodegrid&lt;/a&gt; na solu&#231;&#227;o de cache (Djazz.cache) come&#231;amos a desenvolver usando &amp;#8216;C&amp;#8217;, funcionou muito bem, mas com o passar do tempo a manuten&#231;&#227;o do software come&#231;ou ficar trabalhosa. Eu tenho experiencias com software grande em C &lt;a href=&quot;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html&quot;&gt;(Kernel BSD)&lt;/a&gt; e mesmo assim a manuten&#231;&#227;o de um software n&#227;o &#233; nada confort&#225;vel. Migrei para Python com Twisted, mais infelizmente o c&#243;digos usando Twisted n&#227;o fica muito agrad&#225;vel ou seja n&#227;o &#233; Pyth&#244;nico ent&#227;o olhei para o projeto Node.js que tem a caracter&#237;stica simples e facil de trabalhar com processamento ass&#237;ncrono.&lt;/p&gt;
&lt;p&gt;Recomendo olhar o trabalho que os commiters do Node.js est&#227;o fazendo, tem muitas ideias &#243;timas e outra que precisa ser melhoradas.&lt;/p&gt;
&lt;p&gt;Vejo a Node.js como uma solu&#231;&#227;o &#243;tima e simples para trabalhar com conex&#245;es ass&#237;ncrono, ainda hoje n&#227;o vejo o Node.js substituindo uma linguagem que j&#225; esta a anos rodando em backend como Python, Ruby, Java e etc. Ao meu ver o Node.js vai crescer ainda mais o seu uso nas necessidades espec&#237;fica (ass&#237;ncronas), pela simplicidade de implementa&#231;&#227;o e f&#225;cil manuten&#231;&#227;o.&lt;/p&gt;
&lt;p&gt;Link o slide da palestra &amp;#8220;&lt;a title=&quot;Node.js em produ&#231;&#227;o, javascript no server side&quot; href=&quot;http://www.slideshare.net/avelinoo/nodejs-em-produo-javascript-no-server-side&quot; target=&quot;_blank&quot;&gt;Node.js em produ&#231;&#227;o&lt;/a&gt;&amp;#8220;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/rZRPK7lHSdwhyERl7AGwJxW4g18/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/rZRPK7lHSdwhyERl7AGwJxW4g18/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/rZRPK7lHSdwhyERl7AGwJxW4g18/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/rZRPK7lHSdwhyERl7AGwJxW4g18/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://feeds.feedburner.com/~r/pyAvelino/~4/T6JTchq82gU&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt;</content>
		<author>
			<name>Thiago Avelino</name>
			<email>thiagoavelinoster@gmail.com</email>
			<uri>http://avelino.us</uri>
		</author>
		<source>
			<title type="html">Thiago Avelino</title>
			<subtitle type="html">Python, MongoDB, Node.js, C, C++, NoSQL</subtitle>
			<link rel="self" href="http://feeds.feedburner.com/pyavelino"/>
			<id>tag:blogger.com,1999:blog-2742862280909730250</id>
			<updated>2012-05-07T23:44:28+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/04/09/aula-python-estrutura-de-repeticao-1/"/>
		<id>http://powerpython.wordpress.com/?p=359</id>
		<updated>2012-04-09T17:24:26+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos come&#231;ar a aprender os&#160;exerc&#237;cios&#160;de repeti&#231;&#227;o, da lista original Python&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O&#160;Primeir&#237;ssimo&#160;exerc&#237;cio&#160;diz assim:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
Fa&#231;a um programa que pe&#231;a uma nota, entre zero e dez. Mostre uma mensagem caso o valor seja inv&#225;lido e continue pedindo at&#233; que o usu&#225;rio informe um valor v&#225;lido.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;numero = input(&quot;digite um numero de 0 a 10 ---&amp;gt; &quot;)
while 0 &amp;gt; numero or 10 &amp;lt; numero:
    numero = input(&quot;digite um numero de 0 a 10 ---&amp;gt; &quot;)&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;digite um numero de 0 a 10 &amp;#8212;&amp;gt; 12&lt;br /&gt;
digite um numero de 0 a 10 &amp;#8212;&amp;gt; 15 &#160; &#160; &amp;#8211; Obs: Ele pede mais uma vez o&#160;usu&#225;rio&#160;digite&lt;br /&gt;
digite um numero de 0 a 10 &amp;#8212;&amp;gt; 5 &#160; &#160; &#160; &amp;#8211; Depois que o n&#176; &#233; aceito, ele encerra o programa&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/359/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/359/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=359&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">The Easter mgo release</title>
		<link href="http://blog.labix.org/2012/04/08/the-easter-mgo-release"/>
		<id>http://blog.labix.org/?p=965</id>
		<updated>2012-04-09T02:31:56+00:00</updated>
		<content type="html">&lt;p&gt;It wasn&amp;#8217;t just the bunny that was active over the holidays. The &lt;b&gt;r2012.04.08&lt;/b&gt; release of the &lt;a href=&quot;http://labix.org/mgo&quot;&gt;mgo MongoDB driver for Go&lt;/a&gt; has just been tagged. This release is supposed to be entirely compatible with the last release, and there are some nice improvements and a few important bug fixes, so upgrading is recommended.&lt;/p&gt;
&lt;p&gt;For the impatient, here is a quick summary of the changes performed:&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-965&quot;&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;Bug in Limit method fixed
&lt;li&gt;Overflow in marshaling of time.Time fixed
&lt;li&gt;omitempty support for time.Time fields
&lt;li&gt;Better slave selection
&lt;li&gt;Hard per-server connection limit
&lt;li&gt;Improved performance of query error checking
&lt;li&gt;Sort method arguments simplified
&lt;li&gt;Added Session.Fsync, FsyncLock, and FsyncUnlock methods
&lt;li&gt;Added Query.Snapshot method
&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;If you want more details about any of these, keep reading.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Bug in Limit method fixed&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The Limit method was fixed. It was improperly causing the data to be returned in a single chunk from the server, which would mean less documents being processed if the data retrieved went over 4MB. Thanks to Jeff Wendling for reporting the issue.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Overflow in marshaling of time.Time fixed&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The marshaling of time.Time was overflowing due to the use of UnixNano, which means certain times would be marshaled as an arbitrarily wrong time. The zero time is an important case that was mishandled, for example. If there&amp;#8217;s a chance your application may be affected, you may look for this date in the database to confirm:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
1754-08-30 22:43:41.128654848 +0000 UTC
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you find it, that&amp;#8217;s actually a zero time.&lt;/p&gt;
&lt;p&gt;The problem was fixed and such times will now be marshaled correctly. Thanks to Mikael for reporting the issue on the mgo-users mailing list.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;omitempty support for time.Time fields&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The omitempty bson tag flag is now supported for time.Time values as well. If used, the time is only marshalled into the bson document if IsZero is false. For example:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
type Person struct {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Birthday time.Time `bson:&amp;#8221;,omitempty&amp;#8221;`&lt;br /&gt;
}
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b&gt;Better slave selection&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The slave selection algorithm was changed so that mgo will now pick the server for which it has the least number of connections open at the moment, rather than being a random selection. More improvements in this area will come soon.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Hard per-server connection limit&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;There&amp;#8217;s now a hard limit for the number of concurrent connections to a single server. If that limit is reached, the client will block waiting for connections to be released.&lt;/p&gt;
&lt;p&gt;The default limit is currently 4096 connections per server for each mgo client, but this logic will be improved in the near future as well to take into account the number of connections currently available at the server side.&lt;/p&gt;
&lt;p&gt;Note that this is a fire protection mechanism. This limit is not supposed to be touched under normal operation. If you have higher needs right now, please get in touch.&lt;/p&gt;
&lt;p&gt;The development of this feature was sponsored by Iron.io.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Improved performance of query error checking&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The logic that verified query results for errors was on the expensive side for large documents, as pointed out by Nils Hasenbanck in the mailing list. This has been significantly improved.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Sort method arguments simplified&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The Sort method now takes a list of field names as arguments rather than a document. Field names may be potentially prefixed by &amp;#8211; (minus) to sort in descending order.&lt;/p&gt;
&lt;p&gt;For example, what would previously be written as:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
query := c.Find(q).Sort(bson.M{&amp;#8220;a&amp;#8221;: 1, &amp;#8220;b&amp;#8221;: -1})
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Is now written as:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
query := c.Find(q).Sort(&amp;#8220;a&amp;#8221;, &amp;#8220;-b&amp;#8221;)
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The previous format is still supported right now for compatibility reasons, but it is deprecated and will eventually be dropped entirely.&lt;/p&gt;
&lt;p&gt;More details at:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
&lt;a href=&quot;http://godoc.labix.org/mgo#Query.Sort&quot;&gt;http://godoc.labix.org/mgo#Query.Sort&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b&gt;Added Session.Fsync, FsyncLock, and FsyncUnlock methods&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The new Session Fsync method requests a synchronous or asynchronous flush of in-memory changes to disk, while the FsyncLock and FsyncUnlock methods do the opposite: they handle a lock at the server side that blocks any follow up write requests (and read requests too, see the documentation). This is useful, for example, to perform backups reliably.&lt;/p&gt;
&lt;p&gt;See the documentation of these methods for more details: &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
&lt;a href=&quot;http://godoc.labix.org/mgo#Session.Fsync&quot;&gt;http://godoc.labix.org/mgo#Session.Fsync&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://godoc.labix.org/mgo#Session.FsyncLock&quot;&gt;http://godoc.labix.org/mgo#Session.FsyncLock&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://godoc.labix.org/mgo#Session.FsyncUnlock&quot;&gt;http://godoc.labix.org/mgo#Session.FsyncUnlock&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b&gt;Added Query.Snapshot method&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;The new helper method wraps the snapshot command. More details in the documentation:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
&lt;a href=&quot;http://godoc.labix.org/mgo#Query.Snapshot&quot;&gt;http://godoc.labix.org/mgo#Query.Snapshot&lt;/a&gt;
&lt;/p&gt;&lt;/blockquote&gt;&lt;/p&gt;</content>
		<author>
			<name>Gustavo Niemeyer</name>
			<uri>http://blog.labix.org</uri>
		</author>
		<source>
			<title type="html">Labix Blog</title>
			<subtitle type="html">by Gustavo Niemeyer</subtitle>
			<link rel="self" href="http://blog.labix.org/feed"/>
			<id>http://blog.labix.org/feed</id>
			<updated>2012-05-02T22:45:01+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Um podcast do Castalio!</title>
		<link href="http://feedproxy.google.com/~r/henriquebastos/~3/_PfENG3uSEs/"/>
		<id>http://henriquebastos.net/?p=1118</id>
		<updated>2012-04-05T21:43:06+00:00</updated>
		<content type="html">&lt;p&gt;Existem muitos podcasts dispon&#237;veis na rede. Os assuntos s&#227;o dos mais variados  e dependendo do que voc&#234; est&#225; interessado em um dado momento, provavelmente sua playlist vai mudar bastante com o tempo.&lt;/p&gt;
&lt;p&gt;Al&#233;m do conte&#250;do em si, o que sempre me interessou nos podcasts s&#227;o as motiva&#231;&#245;es que levam cada autor a se dedicar &#224; empreitada. Este sempre foi o crit&#233;rio importante nas minhas prefer&#234;ncias.&lt;span id=&quot;more-1118&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;H&#225; tempos atr&#225;s, o &lt;a href=&quot;http://rafael.adm.br/&quot;&gt;Rafael Lima&lt;/a&gt; decidiu converter seu tempo perdido no tr&#226;nsito no podcast &lt;a href=&quot;http://rafael.adm.br/c/voltandopracasa/&quot;&gt;Voltando pra Casa&lt;/a&gt;. Sua motiva&#231;&#227;o era extremamente simples e por isso o projeto era sensacional. A cada dia, ele simplesmente refletia em voz alta sobre o assunto que mais se destacou em sua mente agitada. Acompanhei cada epis&#243;dio e ainda espero o Rafa abandonar a &lt;em&gt;desculpa&lt;/em&gt; de que est&#225; trabalhando de mais para retomar o projeto. &lt;img src=&quot;http://henriquebastos.net/wp-includes/images/smilies/icon_wink.gif&quot; alt=&quot;;-)&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;Com um vi&#233;s mais t&#233;cnico, o &lt;a href=&quot;http://grokpodcast.com/sobre-rafael-rosa-fu/&quot;&gt;Rafael Rosa Fu&lt;/a&gt; e o &lt;a href=&quot;http://grokpodcast.com/sobre-carlos-brando/&quot;&gt;Carlos Brando&lt;/a&gt; criaram o &lt;a href=&quot;http://grokpodcast.com/&quot;&gt;Grokpodcast&lt;/a&gt;. Novamente, uma motiva&#231;&#227;o simples regeu o desenvolvimento de um show fant&#225;stico: &lt;em&gt;alimentar suas insaci&#225;veis curiosidades&lt;/em&gt;. Cada epis&#243;dio &#233; uma verdadeira investiga&#231;&#227;o por um t&#243;pico de interesse da dupla. Simples assim. Isso rendeu e ainda rende grandes horas de divers&#227;o e aprendizado para os ouvintes.&lt;/p&gt;
&lt;p&gt;Recentemente, conheci o &lt;a href=&quot;http://ogmaciel.tumblr.com/&quot;&gt;Og Maciel&lt;/a&gt; e seu &lt;a href=&quot;http://www.castalio.info/&quot;&gt;Castalio Podcast&lt;/a&gt;. Ele me contactou querendo falar sobre &lt;a href=&quot;http://python.org&quot;&gt;Python&lt;/a&gt; e &lt;a href=&quot;http://djangoproject.com&quot;&gt;Django&lt;/a&gt; entre outros assuntos. Aceitei prontamente e fui explorar os epis&#243;dios anteriores para conhecer melhor o seu projeto. Comecei ouvindo o bate-papo com o saudoso &lt;a href=&quot;http://falcao.it/&quot;&gt;Gabriel Falc&#227;o&lt;/a&gt;, nosso Lenny Kravitz brasileiro, e simplesmente n&#227;o consegui mais parar.&lt;/p&gt;
&lt;p&gt;Quando iniciamos &lt;a href=&quot;http://www.castalio.info/henrique-bastos-welcome-to-the-django/&quot; title=&quot;Ou&#231;a aqui o epis&#243;dio!&quot;&gt;nossa conversa&lt;/a&gt;, fui logo perguntar qual era seu objetivo com o podcast. A resposta n&#227;o podia ter sido mais clara: &lt;em&gt;&amp;#8220;Fa&#231;o o podcast para conhecer melhor as pessoas que acompanho pela comunidade&amp;#8221;&lt;/em&gt;. Uma motiva&#231;&#227;o extremamente simples e intr&#237;nsica ao autor. Totalmente excelente!&lt;/p&gt;
&lt;p&gt;A moral da hist&#243;ria vale a reflex&#227;o. Todos os 3 podcasts s&#227;o iniciativas &lt;strong&gt;despretenciosas&lt;/strong&gt;, motivadas pelo desejo de quem se prop&#245;e o desafio. Tenho para mim, que este tipo de rela&#231;&#227;o despretenciosa entre o empreendedor e o empreendimento contribui enormemente para sua evolu&#231;&#227;o org&#226;nica. Isso elimina a &amp;#8220;mania de grandeza&amp;#8221; e o &amp;#8220;paradoxo do ovo ou a galinha&amp;#8221;, onde a decis&#227;o de fazer um podcast pode alimentar hip&#243;teses n&#227;o validadas que inviabilizam o projeto. Coisas como &amp;#8220;preciso me tornar um engenheiro de som&amp;#8221;, ou &amp;#8220;tenho que comprar um microfone pr&#243;prio antes de come&#231;ar&amp;#8221;.&lt;/p&gt;
&lt;p&gt;Neste artigo, podcast &#233; apenas um exemplo. Mude o nome ou o tipo do projeto, mas recado continua simples e direto: &lt;a href=&quot;http://smallactsmanifesto.org&quot;&gt;&amp;#8220;Fa&#231;a! &amp;#8211; o mais simples poss&#237;vel, apenas o essencial para ir adiante.&amp;#8221;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[]&amp;#8216;s, HB!&lt;/p&gt;
&lt;img src=&quot;http://feeds.feedburner.com/~r/henriquebastos/~4/_PfENG3uSEs&quot; height=&quot;1&quot; width=&quot;1&quot; /&gt;</content>
		<author>
			<name>Henrique Bastos</name>
			<uri>http://henriquebastos.net</uri>
		</author>
		<source>
			<title type="html">Henrique Bastos.NET</title>
			<link rel="self" href="http://feeds.feedburner.com/henriquebastos?format=xml"/>
			<id>http://feeds.feedburner.com/henriquebastos?format=xml</id>
			<updated>2012-05-15T17:44:34+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/04/05/aula-python-20-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=356</id>
		<updated>2012-04-05T16:27:47+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores !&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos fazer um pe&#231;a tr&#234;s idades dos aluno de, e em seguida calcule a media de idade dos alunos, e classifique a sala como jovem crian&#231;a, etc&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;idade1 = input(&quot;\ndigite a idade do aluno ---&amp;gt; &quot;)
idade2 = input(&quot;digite a idade do aluno ---&amp;gt; &quot;)
idade3 = input(&quot;digite a idade do aluno ---&amp;gt; &quot;)
media = (idade1 + idade2 + idade3)/3

print(&quot;\n&quot;)

if media &amp;gt; 40:
    print(&quot;Turma idosa&quot;)
if  25 &amp;lt; media&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;digite a idade do aluno &amp;#8212;&amp;gt; 35&lt;br /&gt;
digite a idade do aluno &amp;#8212;&amp;gt; 22&lt;br /&gt;
digite a idade do aluno &amp;#8212;&amp;gt; 40&lt;br /&gt;
turma adulta&lt;br /&gt;
media da turma = 32 anos&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;digite a idade do aluno &amp;#8212;&amp;gt; 15&lt;br /&gt;
digite a idade do aluno &amp;#8212;&amp;gt; 13&lt;br /&gt;
digite a idade do aluno &amp;#8212;&amp;gt; 14&lt;br /&gt;
turma jovem&lt;br /&gt;
media da turma = 14 anos&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/356/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/356/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=356&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Site da Visie tem menos de 6% de visitantes com IE</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/2hAs3_DYMn4/"/>
		<id>http://elcio.com.br/?p=3662</id>
		<updated>2012-04-05T14:47:29+00:00</updated>
		<content type="html">&lt;p&gt;&lt;img class=&quot;aligncenter size-full wp-image-3664&quot; title=&quot;screenshot_2012-02-28_22:44:20&quot; src=&quot;http://elcio.com.br/wp-content/uploads/2012/02/screenshot_2012-02-28_224420.png&quot; alt=&quot;&quot; width=&quot;348&quot; height=&quot;250&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;aligncenter size-full wp-image-3663&quot; title=&quot;screenshot_2012-02-28_22:43:59&quot; src=&quot;http://elcio.com.br/wp-content/uploads/2012/02/screenshot_2012-02-28_224359.png&quot; alt=&quot;&quot; width=&quot;523&quot; height=&quot;341&quot; /&gt;&lt;/p&gt;
&lt;p&gt;O total de IE 6 e 7, somados, representa 0,5% do total de visitantes.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/ZNFanSpq0KIS-zq_fbjPQiRG6uo/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/ZNFanSpq0KIS-zq_fbjPQiRG6uo/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/ZNFanSpq0KIS-zq_fbjPQiRG6uo/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/ZNFanSpq0KIS-zq_fbjPQiRG6uo/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=2hAs3_DYMn4:56IbtKGdbbY:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=2hAs3_DYMn4:56IbtKGdbbY:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=2hAs3_DYMn4:56IbtKGdbbY:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">What?</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/c7NvXqINF2I/"/>
		<id>http://elcio.com.br/?p=3687</id>
		<updated>2012-04-04T13:02:42+00:00</updated>
		<content type="html">&lt;p&gt;&lt;img src=&quot;http://elcio.com.br/wp-content/uploads/2012/04/oxi.png&quot; alt=&quot;&quot; title=&quot;oxi!&quot; width=&quot;666&quot; height=&quot;74&quot; class=&quot;aligncenter size-full wp-image-3688&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Algu&#233;m me explica?&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/oWOfzo81S_G6MkqXoP3-B8FwdGk/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/oWOfzo81S_G6MkqXoP3-B8FwdGk/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/oWOfzo81S_G6MkqXoP3-B8FwdGk/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/oWOfzo81S_G6MkqXoP3-B8FwdGk/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=c7NvXqINF2I:CRlpQKs6r3s:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=c7NvXqINF2I:CRlpQKs6r3s:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=c7NvXqINF2I:CRlpQKs6r3s:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/04/02/exercicio-python-19-2-solucao/"/>
		<id>http://powerpython.wordpress.com/?p=353</id>
		<updated>2012-04-02T21:34:57+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje e agora, vou mostrar uma segunda solu&#231;&#227;o do&#160;exerc&#237;cio&#160;19 da estrutura de decis&#227;o, o ultimo post, postado via coment&#225;rio pelo Bruce Wayne, segue o link: http://hastebin.com/jocucusane.py&lt;/p&gt;
&lt;pre&gt;def plural(u, n):
  return {
    'unidade': 'unidades',
    'milhar': 'milhares',
    'centena': 'centenas',
    'dezena': 'dezenas'
  }[u] if n &amp;gt; 1 else u

def extenso(n):
  unidades = ['milhar', 'centena', 'dezena', 'unidade']
  maior_unidade = 1000

  saida = []

  while n &amp;gt; 0:
    for unidade in unidades:
      if n &amp;gt;= maior_unidade:
        u = n / maior_unidade
        saida.append('%d %s' % (u, plural(unidade, u)))
        n %= maior_unidade
      maior_unidade /= 10

  if not saida:
    return 'Zero'
  if len(saida) == 1:
    return saida[0]
  if len(saida) == 2:
    return ' e '.join(saida)
  return ', '.join(saida[:-1]) + ' e ' + saida[-1]

if __name__ == '__main__':
  testes = '326 300 100 320 310 305 301 101 311 111 25 20 10 21 11 1 7 16 0'
  for teste in testes.split():
    print teste, '=', extenso(int(teste))&lt;/pre&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/353/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/353/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=353&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/04/02/aula-python-19-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=351</id>
		<updated>2012-04-02T16:53:00+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;seguida mostre a quantidade de unidades, centenas, etc&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 19&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;Fa&#231;a um Programa que leia um n&#250;mero inteiro menor que 1000 e imprima a quantidade de centenas, dezenas e unidades do mesmo.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Observando os termos no plural a coloca&#231;&#227;o do &amp;#8220;e&amp;#8221;, da v&#237;rgula entre outros.Exemplo:&lt;/li&gt;
&lt;li&gt;326 = 3 centenas, 2 dezenas e 6 unidades&lt;/li&gt;
&lt;li&gt;12 = 1 dezena e 2 unidadesTestar com: 326, 300, 100, 320, 310,305, 301, 101, 311, 111, 25, 20, 10, 21, 11, 1, 7 e 16&lt;em&gt;&lt;strong&gt;&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;numero = input(&quot;digite um numero menor que 1000 ---&amp;gt; &quot;)
numeroStr = str(numero)
qtNumero = len(numeroStr)

if qtNumero == 3:
    centena = numeroStr[0:1]
    dezena = numeroStr[1:2]
    unidade = numeroStr[2:3]
    print numeroStr+&quot; = &quot;+centena+&quot; centenas , &quot;+dezena+&quot; dezenas, &quot;+unidade+ &quot; unidades&quot;

if qtNumero == 2:
    dezena = numeroStr[0:1]
    unidade = numeroStr[1:2]
    print numeroStr+&quot; = &quot;+dezena+&quot; dezenas, &quot;+unidade+ &quot; unidades&quot;

if qtNumero == 1:
    unidade = numeroStr[0:1]
    print numeroStr+&quot; = &quot;+unidade+ &quot; unidades&quot;&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite um numero menor que 1000 &amp;#8212;&amp;gt; 456&lt;br /&gt;
456 = 4 centenas , 5 dezenas, 6 unidades&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite um numero menor que 1000 &amp;#8212;&amp;gt; 21&lt;br /&gt;
21 = 2 dezenas, 1 unidades&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite um numero menor que 1000 &amp;#8212;&amp;gt; 361&lt;br /&gt;
361 = 3 centenas , 6 dezenas, 1 unidades&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/351/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/351/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=351&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Benchmarking NLTK under Pypy</title>
		<link href="http://feedproxy.google.com/~r/PythonInScience/~3/-2_mWDVtJss/benchmarking-nltk-under-pypy.html"/>
		<id>tag:blogger.com,1999:blog-840127493134277990.post-3036093561041683254</id>
		<updated>2012-04-01T10:55:40+00:00</updated>
		<content type="html">Natural Language Processing (NLP). A marvelous world of possibilities! Fortunately it is also a great example of another domain of application for which Python is wonderfully well equipped.

I have been playing with Python and NLP, for a couple of years now, integrating its tools on a reasonably large project. I hope to demo this project really soon, but it is not the topic of this post.

The</content>
		<author>
			<name>Flavio Coelho</name>
			<email>noreply@blogger.com</email>
			<uri>http://pyinsci.blogspot.com/</uri>
		</author>
		<source>
			<title type="html">Python in Science</title>
			<subtitle type="html">Scientific adventures with Python.</subtitle>
			<link rel="self" href="http://pyinsci.blogspot.com/feeds/posts/default"/>
			<id>tag:blogger.com,1999:blog-840127493134277990</id>
			<updated>2012-05-01T20:44:49+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Por que sua estrat&#233;gia de mobile come&#231;a com iOS?</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/PLbuWbABWsA/"/>
		<id>http://elcio.com.br/?p=3678</id>
		<updated>2012-03-30T16:54:44+00:00</updated>
		<content type="html">&lt;p&gt;Saiu a not&#237;cia hoje: &lt;a href=&quot;http://idgnow.uol.com.br/mercado/2012/03/29/android-ultrapassara-windows-e-sera-sistema-mais-usado-do-mundo-diz-idc/&quot;&gt;Android ultrapassar&#225; Windows e ser&#225; sistema mais usado do mundo, diz IDC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Agora veja o gr&#225;fico:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://gs.statcounter.com/#mobile_os-BR-monthly-201102-201202&quot;&gt;&lt;img src=&quot;http://elcio.com.br/wp-content/uploads/2012/03/stats.png&quot; alt=&quot;Sistemas operacionais mobile navegando na web no Brasil de Fev/2011 a Fev/2012&quot; title=&quot;Sistemas operacionais mobile navegando na web no Brasil de Fev/2011 a Fev/2012&quot; width=&quot;842&quot; height=&quot;539&quot; class=&quot;aligncenter size-full wp-image-3680&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Apesar disso, continuo recebendo das ag&#234;ncias sites para construir que n&#227;o tem vers&#227;o mobile ou, quando tem, foi desenhada e deve ser constru&#237;da para iPhone e iPad.&lt;/p&gt;
&lt;p&gt;Cena comum numa reuni&#227;o entre cliente e ag&#234;ncia: todo mundo, de ambos os lados, coloca seu celular sobre a mesa. S&#227;o todos iPhone. Logo, acho que at&#233; inconscientemente, eles deduzem que iPhone &#233; o que importa. Al&#244; pessoal! Voc&#234;s est&#227;o falando com 8,7% do p&#250;blico! Com um investimento semelhante, mas um pouquinho mais de planejamento, poderiam falar com praticamente todo mundo que est&#225; navegando no celular.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/CiIgi-4DcmWsgzbqVQzK0fN9174/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/CiIgi-4DcmWsgzbqVQzK0fN9174/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/CiIgi-4DcmWsgzbqVQzK0fN9174/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/CiIgi-4DcmWsgzbqVQzK0fN9174/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=PLbuWbABWsA:udovRXebNsc:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=PLbuWbABWsA:udovRXebNsc:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=PLbuWbABWsA:udovRXebNsc:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/29/manipulando-strings-com-python-3/"/>
		<id>http://powerpython.wordpress.com/?p=347</id>
		<updated>2012-03-29T17:01:14+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos continuar aprendendo mais sobre strings em Python, &#160;a parte 3 &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O M&#233;todo title()&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo &#233; bem lega &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt;  Ele troca todas as primeiras letras da frase de minuscular por&#160;mai&#250;sculas. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'eai beleza!!'
test.title()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;&amp;gt;&amp;gt;&amp;#8217;Eai Beleza!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O M&#233;todo swapcase()&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo troca as letras da string para&#160;mai&#250;sculas. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'eai beleza!!'
test.swapcase()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;&amp;#8217;EAI BELEZA!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;M&#233;todo .rjust &amp;#8211; (Margem da Esquerda)&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo deixa um espa&#231;o da esquerda, &#233; bem simples. Exemplo:&lt;/p&gt;
&lt;pre&gt;print 'PowerPython'.rjust(15)&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&#160;&amp;gt;&amp;gt;&amp;#8217; &#160; &#160; &#160; &#160; &#160; &#160; &#160; PowerPython&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Funciona melhor no terminar python&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&#160;:D&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;M&#233;todo .ljust &amp;#8211; (Margem da direita)&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo deixa um espa&#231;o da direita. Exemplo:&lt;/p&gt;
&lt;pre&gt;print 'PowerPython'.ljust(15)&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&#160;&amp;gt;&amp;gt;&amp;#8217; PowerPython&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;U&#233; ? &amp;#8211; N&#227;o aconteceu nada? &amp;#8211; Aconteceu sim, a margem est&#225; sendo aplicada, &#233; s&#243; pensar um pouquinho, tem toda l&#243;gia &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;Funciona melhor no terminar python&lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&#160;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&lt;/p&gt;
&lt;p&gt;AGUARDEM MAIS AULAS DE STRINGS E PYTHON&#8230;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;h1&gt;&lt;a href=&quot;http://powerpython.wordpress.com/2012/03/27/manipulando-strings-com-python-2/#more-344&quot;&gt;Continue lendo&#160;&#8594;&lt;/a&gt;&lt;/h1&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/347/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/347/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=347&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Site Recomendado: Ubuntu Dicas</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/W-vy7K6gNHo/"/>
		<id>http://elcio.com.br/?p=3629</id>
		<updated>2012-03-27T18:56:51+00:00</updated>
		<content type="html">&lt;p&gt;A maioria dos blogs sobre Ubuntu ou sobre Linux &#233; escrita por hackers para hackers. O &lt;a href=&quot;http://www.ubuntudicas.com.br/&quot;&gt;Ubuntu Dicas&lt;/a&gt;&#160;n&#227;o. &#201; sobre Ubuntu, e &#250;til para qualquer um que use o sistema, n&#227;o importa seu n&#237;vel de conhecimento t&#233;cnico. S&#227;o excelentes dicas de programas, dicas de uso do sistema e not&#237;cias sobre o Ubuntu.&lt;/p&gt;
&lt;p&gt;Recomendo.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/VS4UrhZ-Pkulyf00fe7o4tY3ibc/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/VS4UrhZ-Pkulyf00fe7o4tY3ibc/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/VS4UrhZ-Pkulyf00fe7o4tY3ibc/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/VS4UrhZ-Pkulyf00fe7o4tY3ibc/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=W-vy7K6gNHo:OJRZIijSyRU:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=W-vy7K6gNHo:OJRZIijSyRU:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=W-vy7K6gNHo:OJRZIijSyRU:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/27/manipulando-strings-com-python-2/"/>
		<id>http://powerpython.wordpress.com/?p=344</id>
		<updated>2012-03-27T16:44:21+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos continuar aprendendo mais sobre strings &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O M&#233;todo Split&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo separa a strings pelos espa&#231;os. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'oi tudo bem?'

test.split()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;['oi', 'tudo', 'bem']&#160;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Tamb&#233;m podemos escolher o ponto a cer separado. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'oi e tchau'
test.split('e')&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt; [ ' oi ' , 'tchau' ]&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;M&#233;todo Upper&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo troca as letras minusculas para&#160;mai&#250;sculas. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'oi'
test.upper()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;&amp;#8217;OI&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;M&#233;todo lower&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo faz o contrario do upper. Exemplo&lt;/p&gt;
&lt;pre&gt;test = 'OI'
test.lower()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&#160;&amp;#8217;oi&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;M&#233;todo lower().capitalize()&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Esse m&#233;todo &#233; bem interessante, ele deixa em&#160;mai&#250;sculo&#160;somente as primeiras letras do alfabeto. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'esse e o poder do python'
test.lower().capitalize()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;&amp;#8217;Esse e o poder do python&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-&lt;/p&gt;
&lt;p&gt;AGUARDEM MAIS AULAS DE STRINGS E PYTHON&#8230;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span id=&quot;more-344&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/344/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/344/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=344&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/26/manipulando-strings-com-python-1/"/>
		<id>http://powerpython.wordpress.com/?p=342</id>
		<updated>2012-03-26T18:24:48+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos aprender a manipular strings em Python, oque &#233; bem simples e divertido&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O comando Len&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;#8216;len&amp;#8217; &#233; um dos comandos mais simples, ele nada mais &#233; do que um programa que &amp;#8216;l&#234;&amp;#8217; a quantidade de&#160;caracteres de um string. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'ola programadores'
len(test)&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;17&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Mais &amp;#8216;ola programadores&amp;#8217; tem 16 caracteres!!&lt;br /&gt;
&#201; simples, &amp;#8216;len&amp;#8217; tamb&#233;m conta os espa&#231;os &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;O comando count&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;count (do ingl&#234;s contar), nada mais conta o numero de vezes que um determinado&#160;car&#225;cter se repete em uma string. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'ola programadores'
test.count('o')&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;3&#160;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Comando find&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;find procura a posi&#231;&#227;o de um determinado&#160;car&#225;cter&#160;na string. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'ola'
test.find('o')&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&amp;gt;&amp;gt;0&#160;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Op&#225;&amp;#8230; 0??&lt;br /&gt;
Sim, n&#227;o come&#231;a do 1, mais sim do zero&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Um comando parecido com find&amp;#8230;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Esse tal comando n&#227;o tem nome ou eu n&#227;o sei&amp;#8230;&lt;br /&gt;
Mais enfim, ele faz o contrario do find, ele mostra o&#160;car&#225;cter&#160;que est&#225; em uma determinada posi&#231;&#227;o. Exemplo:&lt;/p&gt;
&lt;pre&gt;test = 'oi'
test[1]&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;&amp;gt;&amp;gt;&amp;#8217;i&amp;#8217;&lt;/p&gt;
&lt;p&gt;AGUARDEM MAIS AULAS DE STRINGS E PYTHON&amp;#8230;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/342/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/342/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=342&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Adeus @luciano, ol&#225; @ramalhoorg</title>
		<link href="http://blog.ramgarlic.com/2012/03/adeus-luciano-ola-ramalhoorg.html"/>
		<id>tag:blogger.com,1999:blog-4463022840615424564.post-148139253393840046</id>
		<updated>2012-03-26T17:14:50+00:00</updated>
		<content type="html">Estou abandonando gradualmente minha conta @luciano no Twitter e come&#231;ando a usar &lt;a href=&quot;https://twitter.com/#%21/ramalhoorg&quot;&gt;@ramalhoorg&lt;/a&gt;. A partir de 27/mar/2012, a conta @luciano vai publicar somente retweets do &lt;a href=&quot;https://twitter.com/#%21/ramalhoorg&quot;&gt;@ramalhoorg&lt;/a&gt;, e avisos peri&#243;dicos para que as pessoas sigam a nova conta.&lt;br /&gt;&lt;br /&gt;Para lembrar, &#233; f&#225;cil: meu email pessoal termina com &lt;code&gt;ramalho.org&lt;/code&gt; (e o Twitter n&#227;o aceita ponto no nome).&lt;br /&gt;&lt;br /&gt;PORQUE ESTOU MUDANDO O NOME&lt;br /&gt;&lt;br /&gt;Parece &#243;timo ter um nome simples como @luciano no Twitter. O problema &#233; que @luciano &#233; um nome comum, e tem uns lucianos mais famosos do que eu, parece que um at&#233; apresenta um programa de audit&#243;rio, imaginem s&#243;.&lt;br /&gt;&lt;br /&gt;Muita gente n&#227;o sabe que no Twitter o espa&#231;o em branco &#233; importante. Se voc&#234; manda um recado para &quot;@luciano bla&quot;, o Sr. Bla nunca vai saber, e eu vou receber o recado. Eu recebo centenas de recados de outras pessoas todo dia no Twitter.&lt;br /&gt;&lt;br /&gt;E a minha lista de men&#231;&#245;es &#233; in&#250;til: a maioria das vezes que @luciano aparece no Twitter, eu n&#227;o sou a pessoa que queriam mencionar. Com isso eu muitas vezes n&#227;o vejo mensagens que seriam para mim.&lt;br /&gt;&lt;br /&gt;Ent&#227;o, meus amigos, por gentileza sigam o &lt;a href=&quot;https://twitter.com/#%21/ramalhoorg&quot;&gt;@ramalhoorg&lt;/a&gt; e esque&#231;am o @luciano, OK?&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/4463022840615424564-148139253393840046?l=blog.ramgarlic.com&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content>
		<author>
			<name>Luciano Ramalho</name>
			<email>noreply@blogger.com</email>
			<uri>http://blog.ramgarlic.com/</uri>
		</author>
		<source>
			<title type="html">Ramgarlic</title>
			<subtitle type="html">Programador repentista</subtitle>
			<link rel="self" href="http://blog.ramgarlic.com/feeds/posts/default"/>
			<id>tag:blogger.com,1999:blog-4463022840615424564</id>
			<updated>2012-05-15T13:44:44+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">test3</title>
		<link href="http://powerpython.wordpress.com/2012/03/24/salve-seus-scripts-na-internet/"/>
		<id>http://powerpython.wordpress.com/?p=334</id>
		<updated>2012-03-24T20:52:55+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Com o coment&#225;rio de&#160;Bruce Wayne descobrir um site&#160;&#211;TIMO para divulgar seus scripts e seus programa gratuitamente na internet, o site chama-se&#160;&lt;a href=&quot;http://hastebin.com/&quot;&gt;http://hastebin.com/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Usando o hastebin:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Para usa-l&#243; &#233; bem simples, depois de acessa-lo, e s&#243; digitar seu programa&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;Fiz alguns testes e vi que ele suporta varias linguagens programa&#231;&#227;o, inclusive &#160; Python. Veja alguns exemplos, j&#225; que programo em varias linguagens:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Python&lt;br /&gt;
&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/test2.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-335&quot; title=&quot;test2&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/test2.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;PHP&lt;br /&gt;
&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/test1.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-336&quot; title=&quot;test1&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/test1.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Java&lt;br /&gt;
&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/test3.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-337&quot; title=&quot;test3&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/test3.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Salvando o seu script&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Para salvar &#233; bem simples, &#233; s&#243; clicar no disquete no canto direito.&lt;br /&gt;
Apos isso, ele nos gerara um link com o programa para voc&#234; divulgar&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Veja o exemplo:&#160;&lt;a href=&quot;http://hastebin.com/ligarayoki.lua&quot;&gt;http://hastebin.com/ligarayoki.lua&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/334/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/334/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=334&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/24/aula-python-18-2-solucao/"/>
		<id>http://powerpython.wordpress.com/?p=331</id>
		<updated>2012-03-24T20:18:56+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Ol&#225; amigos !!&lt;br /&gt;
Hoje recebi &#160;um coment&#225;rio de Bruce Wayne com uma segunda solu&#231;&#227;o do&#160;exerc&#237;cio&#160;18 da estrutura de decis&#227;o, talvez mais orientado a objetos . Fiquem com o Programa :&lt;/p&gt;
&lt;pre&gt;#!/usr/bin/python

def verifica_mes_valido(mes):
    return 1  28) or (bissexto and dia &amp;gt; 29)))

def verifica_meses_31_dias(dia, mes):
    return not (dia &amp;gt; 31 or (mes in (4, 6, 9, 11) and dia &amp;gt; 30))

def data_valida(dia, mes, ano):
    return verifica_mes_valido(mes) and \
        verifica_meses_31_dias(dia, mes) and \
        verifica_fevereiro_bissexto(dia, mes, ano)

if __name__ == '__main__':
    while True:
        data = raw_input(&quot;digite uma data com o seguinte formato dd/mm/aaaa ---&amp;gt; &quot;)
        try:
            dia, mes, ano = (int(componente) for componente in data.split('/'))
        except ValueError:
            print(&quot;Data invalida: &quot; + data)
            continue
        break

    if data_valida(dia, mes, ano):
        print(&quot;data valida&quot;)
    else:
        print(&quot;data invalida&quot;)&lt;/pre&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/331/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/331/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=331&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/24/aula-python-18-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=328</id>
		<updated>2012-03-24T12:06:29+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Aula de Hoje&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos fazer um programa que pe&#231;a uma data na forma dd/mm/xxxx, e informe se a data &#233; valida ou invalida.&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Aten&#231;&#227;o:&lt;/strong&gt;&lt;/em&gt; Essa aula teve como base o post&#160;&lt;a href=&quot;http://diego.wikidot.com/&quot;&gt;http://diego.wikidot.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 18&#176; diz assim:&lt;/strong&gt;&lt;br /&gt;
&lt;/em&gt;&amp;#8220;Fa&#231;a um Programa que pe&#231;a uma data no formato dd/mm/aaaa e determine se a mesma &#233; uma data v&#225;lida&amp;#8221;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;data = raw_input(&quot;digite uma data com o seguinte formato dd/mm/aaaa ---&amp;gt; &quot;)
dia = int(data[0:2])
mes = int(data[3:5])
ano = int(data[6:10])

validade = &quot;true&quot;
i = 0
while validade == &quot;true&quot; and i == 0:
    if (ano%4 == 0 and ano%100!= 0) or ano%400 == 0:
        bissexto = &quot;sim&quot;
    else:
        bissexto = &quot;nao&quot;

    if mes &amp;lt; 1 or mes &amp;gt; 12:
        validade = &quot;false&quot;

    if dia &amp;gt; 31 or ((mes == 4 or mes == 6 or mes == 9 or mes == 11) and dia &amp;gt; 30):
        validade = &quot;false&quot;

    if (mes == 2 and bissexto == &quot;nao&quot; and dia &amp;gt; 28) or ( mes == 2 and bissexto == &quot;sim&quot; and dia &amp;gt; 29):
        validade = &quot;false&quot;
    i = i + 1

if validade == &quot;true&quot;:
    print(&quot;data valida&quot;)
else:
    print(&quot;data invalida&quot;)&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;Estou sem tempo para postar, ent&#227;o esse post n&#227;o vai ter fluxograma e nem explica&#231;&#227;o. Mais n&#227;o reclamem!! Eu j&#225; cobro e nem ganho nada!!&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite uma data com o seguinte formato dd/mm/aaaa &amp;#8212;&amp;gt; 31/02/2012&lt;br /&gt;
data invalida&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite uma data com o seguinte formato dd/mm/aaaa &amp;#8212;&amp;gt; 12/12/2012&lt;br /&gt;
data valida&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/328/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/328/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=328&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">tkinter5-2</title>
		<link href="http://powerpython.wordpress.com/2012/03/22/aula-python-tkinter-5-mensagens/"/>
		<id>http://powerpython.wordpress.com/?p=321</id>
		<updated>2012-03-22T17:14:12+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Aula de Hoje!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje aprenderemos como criar mensagens de erro, alerta, aviso, etc&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Primeiro o&#160;c&#243;digo&#160;- Depois a explica&#231;&#227;o&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;import Tkinter        #1
import tkMessageBox   #2

top = Tkinter.Tk()    #3
def hello(): #4
   tkMessageBox.showinfo(&quot;voc&#234; clicou&quot;, &quot;Hello World&quot;)#5

B1 = Tkinter.Button(top, text = &quot;Clique Aqui!!!&quot;, command = hello)
B1.pack()

top.mainloop()&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Entendo o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 1 e 2:&#160;&lt;/strong&gt;&lt;/em&gt;Importamos as bibliotecas necessarias (tkinter e&#160;tkMessageBox)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 3:&#160;&lt;/strong&gt;&lt;/em&gt;Criamos uma janela chamada top&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 4:&#160;&lt;/strong&gt;&lt;/em&gt;Criamos uma fun&#231;&#227;o para quando clicarmos no bot&#227;o que sera criado adiante&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 5:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;Criamos uma mensagem de informa&#231;&#227;o (info) para quando a fun&#231;&#227;o acima for executada. Com os seguintes&#160;par&#226;metros:&lt;/p&gt;
&lt;pre&gt;tkMessageBox.showinfo(&quot;voc&#234; clicou&quot;, &quot;Hello World&quot;)&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;showinfo&lt;/strong&gt;&lt;/em&gt; &amp;#8211; O tipo da Mensagem (info), outro exemplo &#233; showerror ()&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&#160;&amp;#8221;voc&#234; clicou&amp;#8221;&lt;/strong&gt;&lt;/em&gt; &amp;#8211; O nome da mensagem, o que aparece em cima da janela&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&amp;#8220;Hello World &amp;#8220;&lt;/strong&gt;&lt;/em&gt; &amp;#8211; A mensagem&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Na linhas abaixo criamos um bot&#227;o com o nome clique aqui, como fizemos em aulas anteriores&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter5.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-322&quot; title=&quot;tkinter5&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter5.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#8230;showerror(&amp;#8220;voc&#234; clicou&amp;#8221;, &amp;#8220;Hello World&amp;#8221;)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter5-1.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-323&quot; title=&quot;tkinter5-1&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter5-1.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#8230;askquestion(&amp;#8220;voc&#234; clicou&amp;#8221;, &amp;#8220;Hello World&amp;#8221;)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter5-2.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-324&quot; title=&quot;tkinter5-2&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter5-2.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Outros exemplos:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;showinfo()&lt;/li&gt;
&lt;li&gt;showwarning()&lt;/li&gt;
&lt;li&gt;showerror ()&lt;/li&gt;
&lt;li&gt;askquestion()&lt;/li&gt;
&lt;li&gt;askokcancel()&lt;/li&gt;
&lt;li&gt;askyesno ()&lt;/li&gt;
&lt;li&gt;askretrycancel ()&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/321/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/321/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=321&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/21/aula-python-operados-diversos/"/>
		<id>http://powerpython.wordpress.com/?p=314</id>
		<updated>2012-03-21T20:10:20+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos aprender como usar operadores&#160;matem&#225;ticos&#160;e comparativos&lt;br /&gt;
Se voc&#234; perceber, j&#225; usamos vario desses, com == ; != ; &amp;gt; ; &amp;lt; , etc.&lt;/p&gt;
&lt;p&gt;Para melhor entender os operadores vamos mostrar uma simples tabela:&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Tabela:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;em&gt;&lt;strong&gt;Matem&#225;ticos&lt;/strong&gt;&lt;/em&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;+ ____ adi&#231;&#227;o&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;- ____ subtra&#231;&#227;o&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;* ____ multiplica&#231;&#227;o&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;/ ____ divis&#227;o&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;// ____ divis&#227;o inteira&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;% ____ m&#243;dulo&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;** ____ pot&#234;ncia&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;+ ____ positivo&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;- ____ negativo&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Comparativos:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;lt; ____ menor que&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&amp;gt; ____ maior que&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&amp;lt;= ____ menor ou igual a&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&amp;gt;= ____ maior ou igual a&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;== ____ Igual a&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;!= ____ diferente de&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&amp;lt;&amp;lt; ____ deslocamento para esquerda&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&amp;gt;&amp;gt; ____ deslocamento para direita&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;amp; ____ e bit-a-bit&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;| ____ ou bit-a-bit&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;^ ____ ou exclusivo bit-a-bit&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;~ ____ invers&#227;o&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Alguns exemplos:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;print 2 + 2
print 2 - 1
print 2 * 2
print 10 / 2
print 11 // 2
print 11 % 2
print 10 ** 2
print -50 + 25
print +25 + -15&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
4&lt;br /&gt;
1&lt;br /&gt;
4&lt;br /&gt;
5&lt;br /&gt;
5&lt;br /&gt;
1&lt;br /&gt;
100&lt;br /&gt;
-25&lt;br /&gt;
10&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Operadores Comparativos:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;test = input('Digite um numero: ')

if test &amp;gt; 10:
    print 'maior q 10'
if test &amp;lt; 10:
    print 'menor q 10'
if test == 10:
    print 'igual a 10'
if test != 10:
    print 'diferente de 10'&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite um numero: 15&lt;br /&gt;
maior q 10&lt;br /&gt;
diferente de 10&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite um numero: 35&lt;br /&gt;
maior q 10&lt;br /&gt;
diferente de 10&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite um numero: 10&lt;br /&gt;
igual a 10&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/314/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/314/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=314&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/21/criando-provas-em-python/"/>
		<id>http://powerpython.wordpress.com/?p=312</id>
		<updated>2012-03-21T18:42:44+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;strong&gt;&lt;em&gt;Ol&#225; Programadores!!&#160;&lt;/em&gt;&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos aprender como criar uma simples teste, ou prova em Python&lt;br /&gt;
O programa consiste em uma simples pergunta, e com 3 alternativas (a b c). Caso a resposta seja errada o programa da mais uma chance ao&#160;usu&#225;rio, caso acerte, mostra uma mensagem de acerto e encerra o programa.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Primeiro o Programa &amp;#8211; Depois a explica&#231;&#227;o!&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;print '''         #1
Quanto &#233; 23 x 5?
(a)201
(b)115
(c)320
'''

while True: #2
    resposta = raw_input('R: ')  #3

    if resposta == 'a':  #4
        print 'Voc&#234; errou'

    elif resposta == 'b':
        print 'voc&#234; acertou'  #5
        break               #6
    elif resposta == 'c':  #7
        print 'Voc&#234; errou'&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Entendo o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 1&lt;/strong&gt; &lt;/em&gt;- Escrevemos na tela a pergunta desejado&lt;br /&gt;
Usando &amp;#8221;&amp;#8217; Escrevemos um texto pr&#233; formatado&lt;br /&gt;
(Sem a necessidade de colocar espa&#231;os e&#160;par&#225;grafos)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 2&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Come&#231;amos um&#160;loop&#160;infinito&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Oque &#233; um Loop?&lt;br /&gt;
&lt;/strong&gt;Loop, do ingl&#234;s la&#231;o, lada mais &#233; do que um bloco de comando que sempre &#233; executado.&lt;br /&gt;
EX:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;while True:
    print 'oi'&#160;
    print 'tchau'&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;&#160;&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
tchau&lt;br /&gt;
oi&lt;br /&gt;
tchau&lt;br /&gt;
oi&lt;br /&gt;
tchau&lt;br /&gt;
oi&lt;br /&gt;
tchau&lt;br /&gt;
oi&lt;br /&gt;
&amp;#8230;&amp;#8230; (N&#195;O PARAA!)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 3&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Criamos uma&#160;vari&#225;vel com a resposta do&#160;usu&#225;rio&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 4&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Aqui fazemos um teste, se a resposta for &amp;#8216;a&amp;#8217;, o&#160;usu&#225;rio&#160;errou,e &#160;como esse bloco de programa &#233; um loop, o programa faz a pergunta denovo&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 5 -&#160;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;Caso a resposta seja b (a resposta correta), o programa escreve uma mensagem de acerto&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 6&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Encerra o loop e o programa com o comando&lt;em&gt;&lt;strong&gt;&#160;break&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 7&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Mesmo da linha 4&lt;/p&gt;
&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;Quanto &#233; 23 x 5?&lt;br /&gt;
(a)201&lt;br /&gt;
(b)115&lt;br /&gt;
(c)320&lt;/p&gt;
&lt;p&gt;R: a&lt;br /&gt;
Voc&#234; errou&lt;br /&gt;
R: c&lt;br /&gt;
Voc&#234; errou&lt;br /&gt;
R: b&lt;br /&gt;
voc&#234; acertou&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/312/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/312/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=312&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Configurando o locale no Ubuntu</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/qMOLAdAgDe0/"/>
		<id>http://elcio.com.br/?p=3607</id>
		<updated>2012-03-21T17:58:15+00:00</updated>
		<content type="html">&lt;p&gt;&#201; um problema comum ao configurar um novo servidor com Ubuntu, descobrir que n&#227;o h&#225; um locale v&#225;lido configurado, ou descobrir que o locale padr&#227;o n&#227;o &#233; o que voc&#234; desejava. Os sintomas comuns de um sistema sem um locale v&#225;lido s&#227;o as seguintes mensagens:&lt;/p&gt;
&lt;pre&gt;locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory&lt;/pre&gt;
&lt;p&gt;Ou essa outra, bem mais assustadora:&lt;/p&gt;
&lt;pre&gt;perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = (unset),
   LC_CTYPE = &quot;pt_BR.UTF-8&quot;,
   LANG = &quot;en_US.UTF-8&quot;
   are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).&lt;/pre&gt;
&lt;p&gt;Os sintomas de um locale diferente do que voc&#234; gostaria s&#227;o mensagens em algum idioma estranho.&lt;/p&gt;
&lt;p&gt;Como corrigir? Vou postar aqui, porque esse arquivo fica num local muito inusitado, em minha opini&#227;o. N&#227;o est&#225; em /etc. Edite, como root, o arquivo:&lt;/p&gt;
&lt;pre&gt;/var/lib/locales/supported.d/local&lt;/pre&gt;
&lt;p&gt;E coloque os locales que voc&#234; quer que o sistema suporte. A maioria dos usu&#225;rios brasileiros vai se dar bem com esse conte&#250;do:&lt;/p&gt;
&lt;pre&gt;pt_BR ISO-8859-1
pt_BR.UTF-8 UTF-8&lt;/pre&gt;
&lt;p&gt;No meu caso, como fa&#231;o quest&#227;o de trabalhar exclusivamente com Unicode, eu deixo esse arquivo assim:&lt;/p&gt;
&lt;pre&gt;pt_BR.UTF-8 UTF-8&lt;/pre&gt;
&lt;p&gt;Em seguida rode:&lt;/p&gt;
&lt;pre&gt;sudo dpkg-reconfigure locales&lt;/pre&gt;
&lt;p&gt;Isso deve resolver o problema.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/7l2b9NhDWrybaAaFwPzxDTlYfu8/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/7l2b9NhDWrybaAaFwPzxDTlYfu8/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/7l2b9NhDWrybaAaFwPzxDTlYfu8/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/7l2b9NhDWrybaAaFwPzxDTlYfu8/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=qMOLAdAgDe0:N3LkPTbN8sg:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=qMOLAdAgDe0:N3LkPTbN8sg:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=qMOLAdAgDe0:N3LkPTbN8sg:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/20/criando-sorteio-com-python/"/>
		<id>http://powerpython.wordpress.com/?p=310</id>
		<updated>2012-03-20T17:16:04+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; programadores!!&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje aprenderemos como criar um programa pede a 3 que coloquem seus nomes, em seguida sortei um jogador que mostre a mensagem &amp;#8216;Fulano voc&#234; ganhou!!&amp;#8217;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa primeiro depois a explica&#231;&#227;o!!&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;import random #1

j1 = raw_input('(1&#176; jogador) Digite seu nome: ')#2
j2 = raw_input('(2&#176; jogador) Digite seu nome: ')#3
j2 = raw_input('(3&#176; jogador) Digite seu nome: ')#4

sort = random.randint(1,3) #5

if sort == 1:#6
    print 'Parab&#233;ns',j1,'Voc&#234; Ganhou!!'
elif sort == 2:#7
    print 'Parab&#233;ns',j2,'Voc&#234; Ganhou!!'
elif sort == 3: #8
    print 'Parab&#233;ns',j3,'Voc&#234; Ganhou!!'&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Na linha 1&lt;/strong&gt;&lt;/em&gt;, importamos a biblioteca&#160;Random&#160;( que em ingl&#234;s significa aleat&#243;rio) , vai nos proporcionar o&#160;essencial&#160;dessa aplica&#231;&#227;o o sorteio (vamos ver melhor mais adiante)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Na linha 2&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Pede o nome do 2&#176;&#160;usu&#225;rio&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Na linha 3&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Pede o nome do 3&#176;&#160;usu&#225;rio&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Na linha 4&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Pede o nome do 4&#176; usu&#225;rio&lt;/p&gt;
&lt;p&gt;Criamos uma&#160;vari&#225;vel&#160;que vai conter o valor&#160;sorteado com o seguinte comando:&lt;/p&gt;
&lt;pre&gt;sort = random.randint(1,3)&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;sort&lt;/strong&gt;&lt;/em&gt; &amp;#8211; nome da&#160;vari&#225;vel&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;random.randint(1,3)&lt;/strong&gt;&lt;/em&gt; &amp;#8211; Sorte- ia um numero de 1 a 3&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Na linha 6&lt;/strong&gt;&lt;/em&gt;, &#160;fazemos um teste para saber se o numero sorteado &#233; &#160;1, se for escreve que o vencedor &#233; o jogador 1&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Na linha 7&lt;/strong&gt;&lt;/em&gt;, fazemos um teste para saber se o numero sorteado &#233; 2, se for o vencedor &#233; o jogador 2&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Na linha 8&lt;/strong&gt;&lt;/em&gt;, fazemos um teste para saber se o numero sorteado &#233; 3, se for, ent&#227;o ganhador &#233; o jogador 3&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
(1&#176; jogador) Digite seu nome: Samir&lt;br /&gt;
(2&#176; jogador) Digite seu nome: Matheus&lt;br /&gt;
(3&#176; jogador) Digite seu nome: Carlos&lt;br /&gt;
Parab&#233;ns Samir Voc&#234; Ganhou!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
(1&#176; jogador) Digite seu nome: carlos&lt;br /&gt;
(2&#176; jogador) Digite seu nome: marcos&lt;br /&gt;
(3&#176; jogador) Digite seu nome: silva&lt;br /&gt;
Parab&#233;ns silva Voc&#234; Ganhou!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
(1&#176; jogador) Digite seu nome: Jose&lt;br /&gt;
(2&#176; jogador) Digite seu nome: Maria&lt;br /&gt;
(3&#176; jogador) Digite seu nome: Antonio&lt;br /&gt;
Parab&#233;ns Maria Voc&#234; Ganhou!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/310/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/310/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=310&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">decisao-17</title>
		<link href="http://powerpython.wordpress.com/2012/03/19/aula-python-17-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=307</id>
		<updated>2012-03-19T19:22:26+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt; Continuando a lista de&#160;exerc&#237;cios&#160;da Estrutura de Decis&#227;o Python&amp;#8230;&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
Hoje aprenderemos a como criar um programa que pe&#231;a que ao&#160;usu&#225;rio&#160;que informe um ano, e em seguida mostre se ele &#233; bissexto, ou n&#227;o&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 16&#176;&#160;Exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;&amp;#8220;Fa&#231;a um Programa que pe&#231;a um n&#250;mero correspondente a um determinado ano e em seguida informe se este ano &#233; ou n&#227;o bissexto.&amp;#8221;&#160;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Nota&#160;importante&#160;:&#160;&lt;/strong&gt;&lt;/em&gt;O simbolo % que aparece no Fluxograma a seguir, n&#227;o significa por cento ou porcentagem, mais o &lt;em&gt;&lt;strong&gt;resto da divis&#227;o.&#160;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
EX: &#160;4%2 = 0&lt;br /&gt;
| 0 porque o resto da divis&#227;o de 4 / 2 &#233; 0&lt;/p&gt;
&lt;p&gt;EX: 15%8 = 7&lt;br /&gt;
|o resto da divis&#227;o de 15 / 8 &#233; 7&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Resto n&#227;o &#233; o resultado!!&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-17.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-308&quot; title=&quot;decisao-17&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-17.png?w=640&amp;h=698&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;698&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;ano = input(&quot;digite um ano (XXXX): &quot;)
if (ano%4 == 0 and ano%100!= 0) or ano%400 == 0:
    print ano, &quot; O ano informado &#233; Bissexto&quot;
else:
    print ano, &quot; O ano informado n&#227;o &#233; bissexto&quot;&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite um ano: 2012&lt;br /&gt;
2012 O ano informado &#233; bissexto&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite um ano: 2011&lt;br /&gt;
2011 O ano informado n&#227;o &#233; bissexto&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
digite um ano: 1500&lt;br /&gt;
1500 O ano informado n&#227;o &#233; bissexto&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/307/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/307/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=307&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/19/aula-python-16-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=303</id>
		<updated>2012-03-19T17:00:20+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos construir um programa que faz a equa&#231;&#227;o do 2&#176; grau&lt;br /&gt;
E que em seguida escreva as&#160;ra&#237;zes&#160;reais, se&#160;houver..&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 16&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;&amp;#8220;Fa&#231;a um programa que calcule as ra&#237;zes de uma equa&#231;&#227;o do segundo grau, na forma ax2 + bx + c. O programa dever&#225; pedir os valores de a, b e c e fazer as consist&#234;ncias, informando ao usu&#225;rio nas seguintes situa&#231;&#245;es:&lt;/em&gt;&lt;/p&gt;
&lt;ol type=&quot;a&quot;&gt;
&lt;li&gt;Se o usu&#225;rio informar o valor de A igual a zero, a equa&#231;&#227;o n&#227;o &#233; do segundo grau e o programa n&#227;o deve fazer pedir os demais valores, sendo encerrado;&lt;/li&gt;
&lt;li&gt;Se o delta calculado for negativo, a equa&#231;&#227;o n&#227;o possui raizes reais. Informe ao usu&#225;rio e encerre o programa;&lt;/li&gt;
&lt;li&gt;Se o delta calculado for igual a zero a equa&#231;&#227;o possui apenas uma raiz real; informe-a ao usu&#225;rio;&lt;/li&gt;
&lt;li&gt;Se o delta for positivo, a equa&#231;&#227;o possui duas raiz reais; informe-as ao usu&#225;rio&amp;#8221;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;em&gt;&lt;strong&gt;Estou com alguns trabalhos para fazer&amp;#8230; Ent&#227;o esse post s&#243; vai conter o programa, e n&#227;o vai haver Fluxograma&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;import math

print(&quot;digite os termos da equacao a, b e c da equacao ax^2 + bx + c&quot;)
a = input(&quot;digite o termo a ---&amp;gt; &quot;)
if a == 0:
    print(&quot;nao eh uma equacao de segundo grau&quot;)
else:
    b = input(&quot;digite o termo b  ---&amp;gt; &quot;)
    c = input(&quot;digite o termo c ---&amp;gt; &quot;)
    delta = (math.pow(b,2) - (4*a*c))
    if delta &amp;lt; 0:         print &quot;delta = &quot;,delta,&quot; a equacao nao possui raizes reais&quot;     if delta == 0:         print &quot;delta = &quot;,delta,&quot; a equacao possui uma raiz&quot;         raiz = ((-1)*b + math.sqrt(delta))/(2*a)         print &quot;raiz da equacao = &quot;, raiz     if delta &amp;gt; 0:
        print &quot;delta = &quot;,delta,&quot; a equacao possui duas raizes&quot;
        raiz1 = ((-1)*b + math.sqrt(delta))/(2*a)
        raiz2 = ((-1)*b - math.sqrt(delta))/(2*a)
        print &quot;raiz1 da equacao = &quot;, raiz1
        print &quot;raiz2 da equacao = &quot;, raiz2&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Fonte:&#160;&lt;a href=&quot;http://diego.wikidot.com/&quot;&gt;http://diego.wikidot.com/&lt;/a&gt;&#160;-&#160;Importante!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/303/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/303/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=303&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">tkinter3-3</title>
		<link href="http://powerpython.wordpress.com/2012/03/17/aula-python-tkinter-3/"/>
		<id>http://powerpython.wordpress.com/?p=295</id>
		<updated>2012-03-17T15:02:20+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje aprenderemos a usar a fun&#231;&#227;o Canvas do Tkinter, que traduzindo do ingl&#234;s,significa &amp;#8216;Tela&amp;#8217;, que nada mais que do que uma fun&#231;&#227;o que desenha objetos na tela. Para entender melhor veja o exemplo abaixo:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter41.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-296&quot; title=&quot;tkinter4&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter41.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Esse programa em especifico desenha um ret&#226;ngulo azul na tela.&lt;br /&gt;
O seu&#160;c&#243;digo&#160;fonte &#233; bem simples, vou lhes mostrar em seguida eu explicarei, como fa&#231;o de costume &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;pre&gt;from Tkinter import *

master = Tk()

w = Canvas(master, width=200, height=100) #1

w.create_rectangle(50, 25, 150, 75, fill=&quot;blue&quot;)  #2
w.pack()         #3
mainloop()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Na linha 1&lt;/strong&gt;&lt;/em&gt;, criamos um ret&#226;ngulo, e definimos sua posi&#231;&#227;o na tela&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;- width=200 &#160;(largura)&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;&#160; &#160; &#160; &#160;- height=10 (altura)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Na linha 2&lt;/strong&gt;&lt;/em&gt;,Definimos seu tamanho e sua cor:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;-&#160;(50, 25, 150, 75, fill=&amp;#8221;yellow&amp;#8221;)&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;50 , 25 -&#160;&lt;/strong&gt;&lt;/em&gt; Margem da esquerda (50), Margem de &amp;#8216;cima&amp;#8217; (25)&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;150, 75 -&#160;&lt;/strong&gt;&lt;/em&gt;Largura do&#160;ret&#226;ngulo (150), e sua altura (75)&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;fill=&amp;#8221;yellow&amp;#8221; -&lt;/strong&gt;&lt;/em&gt; Preenche o ret&#226;ngulo com a cor amarela (yellow)&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter41.png&quot;&gt;&lt;img title=&quot;tkinter4&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter41.png?w=227&amp;h=149&quot; alt=&quot;&quot; width=&quot;227&quot; height=&quot;149&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Podemos&#160;tamb&#233;m&#160;trocar a cor do ret&#226;ngulo&lt;br /&gt;
Ex: fill=&amp;#8221;yellow&amp;#8221;&lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;alignnone size-full wp-image-298&quot; title=&quot;tkinter3-1&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3-1.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Vermelho EX: fill=&amp;#8221;red&amp;#8221;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3-2.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-299&quot; title=&quot;tkinter3-2&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3-2.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Podemos tamb&#233;m alterar o tamanho do ret&#226;ngulo:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3-3.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-300&quot; title=&quot;tkinter3-3&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3-3.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/295/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/295/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=295&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/16/programas-e-jogos-feitos-em-python/"/>
		<id>http://powerpython.wordpress.com/?p=278</id>
		<updated>2012-03-16T19:16:56+00:00</updated>
		<content type="html">&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Hoje vou lhes mostrar uma pequena lista de alguns programas que foram feitos na linguagem de programa Python, a que tanto ensino neste blog ;D&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a title=&quot;Google&quot; href=&quot;http://pt.wikipedia.org/wiki/Google&quot;&gt;Google&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;YouTube&quot; href=&quot;http://pt.wikipedia.org/wiki/YouTube&quot;&gt;YouTube&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Mnet&quot; href=&quot;http://pt.wikipedia.org/wiki/Mnet&quot;&gt;Mnet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Zope&quot; href=&quot;http://pt.wikipedia.org/wiki/Zope&quot;&gt;Zope&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;BitTorrent&quot; href=&quot;http://pt.wikipedia.org/wiki/BitTorrent&quot;&gt;BitTorrent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Yahoo!&quot; href=&quot;http://pt.wikipedia.org/wiki/Yahoo!&quot;&gt;Yahoo!&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;NASA&quot; href=&quot;http://pt.wikipedia.org/wiki/NASA&quot;&gt;NASA&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Maya (software)&quot; href=&quot;http://pt.wikipedia.org/wiki/Maya_(software)&quot;&gt;Maya&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Autodesk Softimage&quot; href=&quot;http://pt.wikipedia.org/wiki/Autodesk_Softimage&quot;&gt;Autodesk Softimage&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;TrueSpace&quot; href=&quot;http://pt.wikipedia.org/wiki/TrueSpace&quot;&gt;TrueSpace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Blender&quot; href=&quot;http://pt.wikipedia.org/wiki/Blender&quot;&gt;Blender&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;GIMP&quot; href=&quot;http://pt.wikipedia.org/wiki/GIMP&quot;&gt;GIMP&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Games!!&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a title=&quot;Bridge Commander&quot; href=&quot;http://en.wikipedia.org/wiki/Bridge_Commander&quot;&gt;Bridge Commander&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Civilization IV&quot; href=&quot;http://en.wikipedia.org/wiki/Civilization_IV&quot;&gt;Civilization IV&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Battlefield 2&quot; href=&quot;http://en.wikipedia.org/wiki/Battlefield_2&quot;&gt;Battlefield 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Eve Online&quot; href=&quot;http://en.wikipedia.org/wiki/Eve_Online&quot;&gt;Eve Online&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Freedom Force (2002 video game)&quot; href=&quot;http://en.wikipedia.org/wiki/Freedom_Force_(2002_video_game)&quot;&gt;Freedom Force&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Frets on Fire&quot; href=&quot;http://en.wikipedia.org/wiki/Frets_on_Fire&quot;&gt;Frets on Fire&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;The Temple of Elemental Evil (video game)&quot; href=&quot;http://en.wikipedia.org/wiki/The_Temple_of_Elemental_Evil_(video_game)&quot;&gt;The Temple of Elemental Evil&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Greyhawk&quot; href=&quot;http://en.wikipedia.org/wiki/Greyhawk&quot;&gt;Greyhawk&lt;/a&gt;&#160; empresa&#160;de Dungeons &amp;amp; Dragons&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Vampire: The Masquerade &#8211; Bloodlines&quot; href=&quot;http://en.wikipedia.org/wiki/Vampire:_The_Masquerade_%E2%80%93_Bloodlines&quot;&gt;Vampire: The Masquerade &#8211; Bloodlines&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;World of Darkness&quot; href=&quot;http://en.wikipedia.org/wiki/World_of_Darkness&quot;&gt;World of Darkness&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Vega Strike&quot; href=&quot;http://en.wikipedia.org/wiki/Vega_Strike&quot;&gt;Vega Strike&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Jewel Quest 5 (page does not exist)&quot; href=&quot;http://en.wikipedia.org/w/index.php?title=Jewel_Quest_5&amp;action=edit&amp;redlink=1&quot;&gt;Jewel Quest 5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;World of Tanks&quot; href=&quot;http://en.wikipedia.org/wiki/World_of_Tanks&quot;&gt;World of Tanks&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Al&#233;m do famoso filme Star Wars, que usou Python nos efeitos especiais.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Voc&#234; at&#233; pode achar pequena essa lista, e eu concordo com voc&#234;.&lt;/span&gt;&lt;br /&gt;
&lt;span&gt; Python tem muito mais aplica&#231;&#245;es, e hoje ultrapassa PHP em&#160;popularidade, provando ser uma&#160;&#243;tima&#160;linguagem&#160;de programa&#231;&#227;o. &#160;Se quiser ver a lista completa acesse esse post da&#160;Wikip&#233;dia (em ingl&#234;s) &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Python_software&quot;&gt;clicando aqui&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-278&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/278/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/278/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=278&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">decisao-15</title>
		<link href="http://powerpython.wordpress.com/2012/03/16/aula-python-15-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=286</id>
		<updated>2012-03-16T15:00:25+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje vamos criar um programa que pe&#231;a tr&#234;s lados de um tri&#226;ngulo, e informe ao usu&#225;rio que esse valores pode ser um tri&#226;ngulo, depois informa seu tipo&lt;br /&gt;
(Tri&#226;ngulo Equil&#225;tero,Tri&#226;ngulo Is&#243;sceles,etc)&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 15&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;&amp;#8220;Fa&#231;a um Programa que pe&#231;a os 3 lados de um tri&#226;ngulo. O programa dever&#225; informar se os valores podem ser um tri&#226;ngulo. Indique, caso os lados formem um tri&#226;ngulo, se o mesmo &#233;: equil&#225;tero, is&#243;sceles ou escaleno.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Dicas:&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Tr&#234;s lados formam um tri&#226;ngulo quando a soma de quaisquer dois lados for maior que o terceiro;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Tri&#226;ngulo Equil&#225;tero: tr&#234;s lados iguais;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Tri&#226;ngulo Is&#243;sceles: quaisquer dois lados iguais;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Tri&#226;ngulo Escaleno: tr&#234;s lados diferentes&amp;#8221;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;strong&gt;Para entender melhor esse&#160;exerc&#237;cio, veja o fluxograma:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;span&gt;&lt;em&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-15.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-287&quot; title=&quot;decisao-15&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-15.png?w=640&amp;h=925&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;925&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Traduzindo o Fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;(1) &amp;#8211; O programa salva o valor do primeiro lado do triangulo na&#160;&lt;em&gt;&lt;strong&gt;vari&#225;vel&lt;/strong&gt;&#160;l1&lt;br /&gt;
&lt;/em&gt;(2) -O programa salva o valor do segundo lado do triangulo na&#160;&lt;em&gt;&lt;strong&gt;vari&#225;vel&lt;/strong&gt;&#160;l2&lt;br /&gt;
(3) -O programa salva o valor do terceiro lado do triangulo na&#160;&lt;em&gt;&lt;strong&gt;vari&#225;vel&lt;/strong&gt;&#160;l3&lt;/em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;(4) -Se o primeiro lado e o segundo lado do tri&#226;ngulo for maior que o 3:&lt;br /&gt;
#Agora o programa tenta&#160;descobrir o tipo tri&#226;ngulo&lt;br /&gt;
- Se todos os lados forem iguais &amp;#8211; O tri&#226;ngulo &#233; um Equil&#225;tero&lt;br /&gt;
- Se 2&#160;quaisquer lados (l1 e l2 ou l2 e l3, etc) forem iguais &amp;#8211; Is&#243;sceles&lt;br /&gt;
- Se Todos os lados forem diferentes &amp;#8211; Tri&#226;ngulo Escale&lt;/p&gt;
&lt;p&gt;(5) &amp;#8211; Caso&#160;o primeiro lado e o segundo lado do tri&#226;ngulo for maior que o 3 o todos os lados n&#227;o podem ser um Tri&#226;ngulo.&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;O Programa:&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;pre&gt;l1 = input('Digite o tamanho do primeiro lado: ')
l2 = input('Digite o segundo lado: ')
l3 = input('Digite o segundo lado: ')

if l1 + l2 &amp;gt; l3:
    if l1 == l2 and l1 == l3:
        print 'Tri&#226;ngulo Equil&#225;tero'
    elif l1 == l2 or l2 == l3 or l1 == l3:
        print 'Tri&#226;ngulo Is&#243;sceles'
    elif l1 != l2 and l3 or l2 != l1 and l3 or l1 != l3:
        print 'Tri&#226;ngulo Escaleno'

else:
    print '&#201; impossivel ser um tri&#226;ngulo'&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;&#160;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o tamanho do primeiro lado: 5&lt;br /&gt;
Digite o segundo lado: 5&lt;br /&gt;
Digite o segundo lado: 2&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Tri&#226;ngulo Is&#243;sceles&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o tamanho do primeiro lado: 5&lt;br /&gt;
Digite o segundo lado: 8&lt;br /&gt;
Digite o segundo lado: 9&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Tri&#226;ngulo Escaleno&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o tamanho do primeiro lado: 8&lt;br /&gt;
Digite o segundo lado: 8&lt;br /&gt;
Digite o segundo lado: 8&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Tri&#226;ngulo Equil&#225;tero&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o tamanho do primeiro lado: 2&lt;br /&gt;
Digite o segundo lado: 2&lt;br /&gt;
Digite o segundo lado: 10&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;&#201; impossivel ser um tri&#226;ngulo&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span id=&quot;more-286&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/286/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/286/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=286&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">calendario3</title>
		<link href="http://powerpython.wordpress.com/2012/03/15/calendario-em-python/"/>
		<id>http://powerpython.wordpress.com/?p=272</id>
		<updated>2012-03-15T19:57:34+00:00</updated>
		<content type="html">&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Hoje vamos aprender a construir um programa que pe&#231;a um numero, e retorne o calend&#225;rio correspondente. EX: 12 &amp;#8211; Dezembro, 1 &amp;#8211; Janeiro,etc&lt;/p&gt;
&lt;p&gt;Para esse programa, vamos precisar usar um biblioteca simples e eficaz de ser usada, seu nome &#233; calendar. Para usa-l&#225;, a importamos dessa maneira:&lt;/p&gt;
&lt;pre&gt;import calendar&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Primeiro vou lhes mostrar o programa inteiro, em seguida eu explico ;D&lt;/p&gt;
&lt;pre&gt;import calendar

mes = input('Digite o numero do m&#234;s: ')   #2

if mes &amp;gt;=1 and mes &amp;lt;=12:              #3
    cal = calendar.month(2012, mes)   #4
    print &quot;Esse &#233; o Calend&#225;rio do m&#234;s&quot;,mes
    print '--------------------------------'  #5
    print cal;             #6
else:
    print 'Intrada invalida'         #7&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Explicando o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 2:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;Pegamos o numero do m&#234;s com o usuario (1,2,3&amp;#8230;)&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Linha 3:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;Criamos uma condi&#231;&#227;o para o programa ser executado:&lt;br /&gt;
O c&#243;digo s&#243; sera executado se o numero digitado for de 1 a 12&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Linha 4:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;Criamos uma&#160;vari&#225;vel&#160;que contem o valor do m&#234;s que o&#160;usu&#225;rio digitar. Se n&#227;o tivesse a&#160;vari&#225;vel&#160;mes, teriamos n&#243;s que escolher o mes, n&#227;o o usuario, ficaria assim:&lt;/p&gt;
&lt;pre&gt;calendar.month(2012, 1) #1 de janeiro, podia ser 5,9,12&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Linha 5:&#160;&lt;/strong&gt;&lt;/em&gt;Pulamos uma linha marota ;D&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Linha 6:&#160;&lt;/strong&gt;&lt;/em&gt;Escrevemos o valor da&#160;vari&#225;vel&#160;cal, que contem o m&#234;s&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;Linha 7:&#160;&lt;/strong&gt;&lt;/em&gt;Caso o&#160;usu&#225;rio&#160;digite um numero invalido (15 , 16 ,13, etc) Mostre uma mensagem de erro, ou algo tipo &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/calendario1.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-273&quot; title=&quot;calendario1&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/calendario1.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/calendario2.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-274&quot; title=&quot;calendario2&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/calendario2.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/calendario3.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-275&quot; title=&quot;calendario3&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/calendario3.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/272/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/272/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=272&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">decisao-14</title>
		<link href="http://powerpython.wordpress.com/2012/03/15/aula-python-14-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=267</id>
		<updated>2012-03-15T13:27:13+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Aula de Hoje:&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Nesta aula realizaremos o&#160;exerc&#237;cio&#160;14, nele vamos aprender a como verificar a nota de um aluno, calcular sua media, responder&#160;sua nota correspondente (A B C D E ), e depois mostrar se foi aprovado ou n&#227;o.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 14&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;Fa&#231;a um programa que l&#234; as duas notas parciais obtidas por um aluno numa disciplina ao longo de um semestre, e calcule a sua m&#233;dia. A atribui&#231;&#227;o de conceitos obedece &#224; tabela abaixo:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;  M&#233;dia de Aproveitamento  Conceito
  Entre 9.0 e 10.0        A
  Entre 7.5 e 9.0         B
  Entre 6.0 e 7.5         C
  Entre 4.0 e 6.0         D
  Entre 4.0 e zero        E&quot;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&#160;Para entender melhor&amp;#8230; eis o fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-14.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-268&quot; title=&quot;decisao-14&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-14.png?w=640&amp;h=912&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;912&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;v1 = input(&amp;#8216;Digite o valor da primeira nota: &amp;#8216;)&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;v2 = input(&amp;#8216;Digite o valor da segunda nota: &amp;#8216;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nota = (v1 + v2) /2&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#nota A&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if nota &amp;gt;= 9 and nota &amp;lt;= 10:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da primeira prova: &amp;#8216;,v1&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da segunda prova: &amp;#8216;,v2&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Voc&#234; tirou um A!&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Sua media &#233; de:&amp;#8217;,nota&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;voc&#234; foi aprovado!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#nota B&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif nota &amp;gt;= 7.5 and nota &amp;lt; 9:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da primeira prova: &amp;#8216;,v1&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da segunda prova: &amp;#8216;,v2&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Voc&#234; tirou um B!&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Sua media &#233; de:&amp;#8217;,nota&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;voc&#234; foi aprovado!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#nota C&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif nota &amp;gt;= 6.5 and nota &amp;lt; 7.5:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da primeira prova: &amp;#8216;,v1&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da segunda prova: &amp;#8216;,v2&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Voc&#234; tirou um C!&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Sua media &#233; de:&amp;#8217;,nota&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;voc&#234; foi aprovado!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#nota D&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif nota &amp;gt;= 4 and nota &amp;lt; 6:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da primeira prova: &amp;#8216;,v1&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da segunda prova: &amp;#8216;,v2&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Voc&#234; tirou um D!&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Sua media &#233; de:&amp;#8217;,nota&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;voc&#234; foi reprovado!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#nota E&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif nota &amp;lt; 4:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da primeira prova: &amp;#8216;,v1&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;A nota da segunda prova: &amp;#8216;,v2&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Voc&#234; tirou um E!&amp;#8217;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;Sua media &#233; de:&amp;#8217;,nota&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; print &amp;#8216;voc&#234; foi reprovado!!&amp;#8217;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;Sa&#237;das&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o valor da primeira nota: 4&lt;br /&gt;
Digite o valor da segunda nota: 5&lt;br /&gt;
A nota da primeira prova: 4&lt;br /&gt;
A nota da segunda prova: 5&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&lt;br /&gt;
Voc&#234; tirou um D!&lt;br /&gt;
Sua media &#233; de: 4&lt;br /&gt;
voc&#234; foi reprovado!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da2:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o valor da primeira nota: 7&lt;br /&gt;
Digite o valor da segunda nota: 8&lt;br /&gt;
A nota da primeira prova: 7&lt;br /&gt;
A nota da segunda prova: 8&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&lt;br /&gt;
Voc&#234; tirou um C!&lt;br /&gt;
Sua media &#233; de: 7&lt;br /&gt;
voc&#234; foi aprovado!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da3:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o valor da primeira nota: 7&lt;br /&gt;
Digite o valor da segunda nota: 8&lt;br /&gt;
A nota da primeira prova: 7&lt;br /&gt;
A nota da segunda prova: 8&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&lt;br /&gt;
Voc&#234; tirou um C!&lt;br /&gt;
Sua media &#233; de: 7&lt;br /&gt;
voc&#234; foi aprovado!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da4:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o valor da primeira nota: 10&lt;br /&gt;
Digite o valor da segunda nota: 9&lt;br /&gt;
A nota da primeira prova: 10&lt;br /&gt;
A nota da segunda prova: 9&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&lt;br /&gt;
Voc&#234; tirou um A!&lt;br /&gt;
Sua media &#233; de: 9&lt;br /&gt;
voc&#234; foi aprovado!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/267/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/267/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=267&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">decisao-13</title>
		<link href="http://powerpython.wordpress.com/2012/03/14/aula-python-13-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=264</id>
		<updated>2012-03-14T21:49:40+00:00</updated>
		<content type="html">&lt;p&gt;&lt;em&gt;Nesta aula vamos realizar o&#160;exerc&#237;cio&#160;13 da lista de&#160;exerc&#237;cios originais Python &#160;este&#160;exerc&#237;cio&#160;&#233; bem simples e vem facil de ser compreendido. Acompanhe o fluxograma e programa.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 13&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;#8220;Fa&#231;a um Programa que leia um n&#250;mero e exiba o dia correspondente da semana. (1-Domingo, 2- Segunda, etc.), se digitar outro valor deve aparecer valor inv&#225;lido&amp;#8221;&#160;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O Fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-13.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-265&quot; title=&quot;decisao-13&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-13.png?w=640&amp;h=994&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;994&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;numero = input('Digite um numero: ')

if numero == 1:
    print '1-Domingo'
elif numero == 2:
    print '2-Segunda'
elif numero == 3:
    print '3-Ter&#231;a'
elif numero == 4:
    print '4-Quarta'
elif numero == 5:
    print '5-Quinta'
elif numero == 6:
    print '6-Sexta'
elif numero == 7:
    print '7-Sab&#225;do'
else:
    print 'Intrada invalida'&lt;/pre&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/264/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/264/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=264&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">decisao-12</title>
		<link href="http://powerpython.wordpress.com/2012/03/14/aula-python-12-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=259</id>
		<updated>2012-03-14T14:08:05+00:00</updated>
		<content type="html">&lt;p&gt;Continuando a lista de&#160;exerc&#237;cios&#160;Python da Estrutura de Decis&#227;o&amp;#8230;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 12&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;&amp;#8220;Fa&#231;a um programa para o c&#225;lculo de uma folha de pagamento, sabendo que os descontos s&#227;o do Imposto de Renda, que depende do sal&#225;rio bruto (conforme tabela abaixo) e 3% para o Sindicato e que o FGTS corresponde a 11% do Sal&#225;rio Bruto, mas n&#227;o &#233; descontado (&#233; a empresa que deposita). O Sal&#225;rio L&#237;quido corresponde ao Sal&#225;rio Bruto menos os descontos. O programa dever&#225; pedir ao usu&#225;rio o valor da sua hora e a quantidade de horas trabalhadas no m&#234;s.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Desconto do IR:&lt;/li&gt;
&lt;li&gt;Sal&#225;rio Bruto at&#233; 900 (inclusive) &amp;#8211; isento&lt;/li&gt;
&lt;li&gt;Sal&#225;rio Bruto at&#233; 1500 (inclusive) &amp;#8211; desconto de 5%&lt;/li&gt;
&lt;li&gt;Sal&#225;rio Bruto at&#233; 2500 (inclusive) &amp;#8211; desconto de 10%&lt;/li&gt;
&lt;li&gt;Sal&#225;rio Bruto acima de 2500 &amp;#8211; desconto de 20%&#160;Imprima na tela as informa&#231;&#245;es, dispostas conforme o exemplo abaixo. No exemplo o valor da hora &#233; 5 e a quantidade de hora &#233; 220.
&lt;pre&gt;        Sal&#225;rio Bruto: (5 * 220)        : R$ 1100,00
        (-) IR (5%)                     : R$   55,00
        (-) INSS ( 10%)                 : R$  110,00
        FGTS (11%)                      : R$  121,00
        Total de descontos              : R$  165,00
        Sal&#225;rio Liquido                 : R$  935,00&quot;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;&#160;O Flugrama:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-12.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-260&quot; title=&quot;decisao-12&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-12.png?w=640&amp;h=761&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;761&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Aten&#231;&#227;o: Estou tendo problemas para colocar os meus c&#243;digos no&#160;Wordpress, por esse motivo ficara assim:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;horas = input(&amp;#8216;Digite o numero de horas trabalhadas: &amp;#8216;)&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;ghoras = input(&amp;#8216;Digite o ganho por horas: &amp;#8216;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;bruto = ghoras * horas&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;cinco = (5 / 100.0) * bruto&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;dez = (10 / 100.0) * bruto&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;vinte = (20 / 100.0) * bruto&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;onze = (11 / 100.0) * bruto&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if bruto &amp;lt;= 900:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Seu sal&#225;rio bruo &#233; de:&amp;#8217;,bruto &amp;#8211; cinco&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;(-) IR (5%) :&amp;#8217;,&amp;#8217; R$&amp;#8217;,cinco&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;(-) INSS ( 10%):&amp;#8217;,&amp;#8217; R$&amp;#8217;,dez&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;FGTS (11%): &amp;#8216;,&amp;#8217; R$&amp;#8217;,onze&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Total de descontos:&amp;#8217;,'R$&amp;#8217;,cinco + dez + onze&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Sal&#225;rio Liquido :&amp;#8217;,&amp;#8217; R$&amp;#8217;,bruto &amp;#8211; (cinco + dez + onze) &lt;/em&gt;&lt;br /&gt;
&lt;em&gt;elif bruto &amp;gt;= 900 and bruto &amp;lt;= 1500:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Seu sal&#225;rio bruo &#233; de:&amp;#8217;,bruto &amp;#8211; dez&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;(-) IR (5%) :&amp;#8217;,&amp;#8217; R$&amp;#8217;,cinco&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;(-) INSS ( 10%):&amp;#8217;,&amp;#8217; R$&amp;#8217;,dez&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;FGTS (11%): &amp;#8216;,&amp;#8217; R$&amp;#8217;,onze&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Total de descontos:&amp;#8217;,'R$&amp;#8217;,cinco + dez + onze &lt;/em&gt;&lt;br /&gt;
&lt;em&gt;elif bruto &amp;gt; 1500:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Seu sal&#225;rio bruo &#233; de:&amp;#8217;,bruto &amp;#8211; vinte&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;(-) IR (5%) :&amp;#8217;,&amp;#8217; R$&amp;#8217;,cinco&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;(-) INSS ( 10%):&amp;#8217;,&amp;#8217; R$&amp;#8217;,dez&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;FGTS (11%): &amp;#8216;,&amp;#8217; R$&amp;#8217;,onze&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160;print &amp;#8216;Total de descontos:&amp;#8217;,'R$&amp;#8217;,cinco + dez + onze&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/259/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/259/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=259&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">HTML5 &#233; mais que canvas</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/BeUvdSIv7R4/"/>
		<id>http://elcio.com.br/?p=3657</id>
		<updated>2012-03-14T14:07:21+00:00</updated>
		<content type="html">&lt;p&gt;Acesse o &lt;a href=&quot;http://html5please.com/&quot;&gt;HTML5 Please&lt;/a&gt;. Clique em &lt;a href=&quot;http://html5please.com/#use&quot;&gt;use&lt;/a&gt; e d&#234; uma olhada na lista. Agora clique em &lt;a href=&quot;http://html5please.com/#caution&quot;&gt;use with caution&lt;/a&gt; e confira a lista. Viu quanta coisa?&lt;/p&gt;
&lt;p&gt;Por que a maioria dos exemplos de site em HTML5 brasileiros, dois anos depois de come&#231;armos a usar esse treco, ainda s&#227;o um mark-up levemente vitaminado e canvas?&lt;/p&gt;
&lt;p&gt;Onde est&#227;o nossas aplica&#231;&#245;es offline? Web sockets? Drag-and-drop? Geolocation? Micro-data? Device orientation? Novos campos de formul&#225;rio? SVG? History API?&lt;/p&gt;
&lt;h2&gt;Mas n&#227;o tem demanda&amp;#8230;&lt;/h2&gt;
&lt;p&gt;Voc&#234; pode se desculpar por estar usando os mesmos velhos recursos de sempre, dizendo que os clientes da ag&#234;ncia ou produtora onde voc&#234; trabalha n&#227;o querem os recursos novos, que seu chefe n&#227;o quer saber dessas coisas, que tem trabalho pra caramba pra simplesmente recortar os layouts que recebe e n&#227;o quer arrumar sarna pra se co&#231;ar&amp;#8230;&lt;/p&gt;
&lt;p&gt;Voc&#234; vai mesmo querer passar o resto da vida recortando layouts? O mundo vai mudar, e voc&#234; vai ser extinto, dinossauro. Se n&#227;o tem demanda, crie a demanda. Comece a desenvolver projetos pessoais com o que voc&#234; acha que seus clientes deveriam estar usando. Em seguida, mostre para todo mundo. Voc&#234; vai ver se a demanda n&#227;o aparece.&lt;/p&gt;
&lt;p&gt;Todo mundo tem celular conectado. Todos os navegadores (at&#233; o IE) est&#227;o se esfor&#231;ando para funcionar direito. &#201; um momento m&#225;gico. &#201; uma oportunidade que voc&#234; n&#227;o quer deixar passar. Um pouquinho de esfor&#231;o a&#237;, galera.&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/4dwi8pZI7-VXVHwYo0_k0t7pCyo/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/4dwi8pZI7-VXVHwYo0_k0t7pCyo/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/4dwi8pZI7-VXVHwYo0_k0t7pCyo/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/4dwi8pZI7-VXVHwYo0_k0t7pCyo/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=BeUvdSIv7R4:ZntmPaqGfvc:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=BeUvdSIv7R4:ZntmPaqGfvc:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=BeUvdSIv7R4:ZntmPaqGfvc:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">arquivos2</title>
		<link href="http://powerpython.wordpress.com/2012/03/13/editando-arquivos-com-python/"/>
		<id>http://powerpython.wordpress.com/?p=254</id>
		<updated>2012-03-13T19:12:31+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje aprenderemos a como editar arquivos de texto usando Python!!&lt;br /&gt;
Antes de tudo, crie um arquivo txt com o nome que&#160;preferir. Assim : texto.txt&lt;br /&gt;
Primeiro vou lhes mostrar o programa completo depois eu explico ;D&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;arquivo = open('texto.txt', 'w') #1

#2 Come&#231;a o texto
texto = &quot;&quot;&quot;          

Bem vindo a aula de Programa&#231;&#227;o usando Python
---------------------------------------------
Hoje aprendi a editar arquivos usando Python
           &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; 

&quot;&quot;&quot;                     #Termina o texto

print 'O arquivo foi editado com sucesso!!'
arquivo.write(texto)   #3
arquivo.close()        #4&lt;/pre&gt;
&lt;p&gt;Na linha 1, criamos uma&#160;vari&#225;vel&#160;que contem o local do arquivo txt&lt;/p&gt;
&lt;pre&gt;arquivo = open('texto.txt', 'w') #1&lt;/pre&gt;
&lt;p&gt;Depois com &amp;#8216;, w&amp;#8217; &#160;especificamos que tipo de edi&#231;&#227;o vamos fazer. Sendo elas:&lt;/p&gt;
&lt;p&gt;w =&#160;Write -&amp;gt; Que escreve em cima de tudo que tiver no arquivo&lt;br /&gt;
r = Read -&amp;gt; Que somente l&#234; o arquivo&lt;br /&gt;
etc &amp;#8211; Existe varias outras, ou n&#227;o&amp;#8230;&lt;/p&gt;
&lt;p&gt;Na linha 2, criamos o texto que sera escrito no arquivo&lt;/p&gt;
&lt;pre&gt;texto = &quot;&quot;&quot;          #2 Come&#231;a o texto

Bem vindo a aula de Programa&#231;&#227;o usando Python
---------------------------------------------
Hoje aprendi a editar arquivos usando Python
           &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; 

&quot;&quot;&quot;                     #Termina o texto&lt;/pre&gt;
&lt;p&gt;Na linha 3, Escrevemos o arquivo com o&#160;conte&#250;do da&#160;vari&#225;vel texto. Depois encerramos a conex&#227;o com o arquivo&lt;/p&gt;
&lt;pre&gt;arq.write(texto)   #3
arq.close()        #4&lt;/pre&gt;
&lt;p&gt;Tamb&#233;m podemos informar ao&#160;usu&#225;rio&#160;que o arquivo foi editado:&lt;/p&gt;
&lt;pre&gt;print 'O arquivo foi editado com sucesso!!'
arq.write(texto)   #3
arq.close()        #4&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/arquivos.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-255&quot; title=&quot;arquivos&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/arquivos.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/arquivos2.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-256&quot; title=&quot;arquivos2&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/arquivos2.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/254/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/254/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=254&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">tkinter4</title>
		<link href="http://powerpython.wordpress.com/2012/03/13/aula-tkinter-2-mini-jogo-com-python/"/>
		<id>http://powerpython.wordpress.com/?p=245</id>
		<updated>2012-03-13T15:04:07+00:00</updated>
		<content type="html">&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Ola&#160;Programadores !!&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Hoje aprenderemos como criar uma &amp;#8216;mine&amp;#8217; aplica&#231;&#227;o&#160;gr&#225;fica&#160;usando TKinter !!&lt;br /&gt;
O programa consiste em uma pergunta b&#225;sica (Quanto &#233; 1+1 ?), e tr&#234;s&#160;bot&#245;es para responder ( 1 &#160;- 2 &amp;#8211; 3)&#160;. E quado voc&#234; aperta o bot&#227;o errado, ele escreve &amp;#8220;Voc&#234; errou!!&amp;#8221;, e quando aperta o bot&#227;o certo &amp;#8211; &amp;#8220;Voc&#234; Acertou!!&amp;#8221;.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Escrevendo o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Primeiro vamos apresentar o programa completo, e em seguida vamos explicar!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;from Tkinter import *

master = Tk()

#(1)fun&#231;&#227;o para a resposta 1
def um():
    v.set('Voc&#234; errou!!')
#fun&#231;&#227;o para a resposta 2
def dois():
    v.set('Voc&#234; acertou!!')
#fun&#231;&#227;o para a resposta 3
def tres():
    v.set('Voc&#234; errou!!')

#(2)Aqui criamos uma Label(Texto)
v = StringVar()
Label(master, textvariable=v, font=(&quot;Helvetica&quot;,45)).pack()
#(3)Aqui criamos uma vari&#225;vel para o texto da Label
v.set(&quot;Quanto &#233; 1 + 1 ?&quot;)

#(3)Aqui criamos os bot&#245;es para as respostas
um = Button(master, text=&quot;1&quot;,command=um, font=(&quot;Helvetica&quot;,20))
dois = Button(master, text=&quot;2&quot;,command=dois, font=(&quot;Helvetica&quot;,20))
tres = Button(master, text=&quot;3&quot;,command=tres, font=(&quot;Helvetica&quot;,20))

#(4)Aqui mostramos os bot&#245;es na tela, e estipulamos o lugar
um.place(x=80, y=100, width=100, height=50)
dois.place(x=180, y=100, width=100, height=50)
tres.place(x=280, y=100, width=100, height=50)

mainloop()&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Entendo o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Na linha 1 (#1) Criamos fun&#231;&#245;es para quando o&#160;usu&#225;rio&#160;clicar nos bot&#245;es. Vamos entender melhor: O comando abaixo muda a&#160;vari&#225;vel&#160;da Label. Voc&#234; entendera melhor mais adiante&lt;/p&gt;
&lt;pre&gt;v.set('Voc&#234; errou!!')&lt;/pre&gt;
&lt;p&gt;Na linha 2, Criamos uma Label, depois estipulamos seu texto, sua fonte , e seu tamanho&lt;/p&gt;
&lt;pre&gt;v = StringVar()  #vari&#225;vel que contem o texto da Label
Label(master, textvariable=v, font=(&quot;Helvetica&quot;,45)).pack()

#textvariable=v Estipula que o texto &#233; a vari&#225;vel v
#font=(&quot;Helvetica&quot;,45) Estipula a fonte e o tamanho

v.set(&quot;Quanto &#233; 1 + 1 ?&quot;)&lt;/pre&gt;
&lt;p&gt;Na linha 3, Criamos os bot&#245;es para as respostas, entenda melhor:&lt;/p&gt;
&lt;pre&gt;um = Button(master, text=&quot;1&quot;,command=um, font=(&quot;Helvetica&quot;,20))
dois = Button(master, text=&quot;2&quot;,command=dois, font=(&quot;Helvetica&quot;,20))
tres = Button(master, text=&quot;3&quot;,command=tres, font=(&quot;Helvetica&quot;,20))&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Um, dois ou tres&lt;/em&gt;&lt;/strong&gt;, s&#227;o os nomes dos bot&#245;es&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;text=&amp;#8221;1&amp;#8243;,text=&amp;#8221;2&amp;#8243;&lt;/em&gt;&lt;/strong&gt;&amp;#8230;&#160;&#201;&#160;o texto dos bot&#245;es&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;command=um, command=dois&lt;/em&gt;&lt;/strong&gt;&amp;#8230; &#201; o comando a ser executado quando clicarmos no bot&#227;o, aquelas fun&#231;&#245;es que criamos no come&#231;o ;D&lt;/p&gt;
&lt;p&gt;Na linha 4, Mostramos o bot&#245;es criados acima, em seguida estipulamos o seu lugar na tela. Entenda Melhor:&lt;/p&gt;
&lt;pre&gt;um.place(x=80, y=100, width=100, height=50)
dois.place(x=180, y=100, width=100, height=50)
tres.place(x=280, y=100, width=100, height=50)

mainloop()&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;x= &amp;#8230;&lt;/strong&gt; &lt;/em&gt;Estipula a coordenada &amp;#8216;x&amp;#8217; da&#160;interface&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;y= &amp;#8230;&lt;/strong&gt;&lt;/em&gt;Estipula a&#160;coordenada&#160;&amp;#8217;y&amp;#8217; da interface&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;width=&lt;/strong&gt;&lt;/em&gt;100 Estipula a altura do bot&#227;o&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;height=&lt;/strong&gt;&lt;/em&gt;100 Estipula a largura do bot&#227;o&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;mainloop()&lt;/strong&gt;&lt;/em&gt; &amp;#8211;&amp;gt; Roda o programa&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&#160;&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;!Aten&#231;&#227;o!: N&#227;o consegui achar uma maneira de fazer o programa abrir de forma correta. Se voc&#234; souber como, responda nos coment&#225;rios.&lt;br /&gt;
Sendo eu sem solu&#231;&#227;o, &amp;#8216;estique&amp;#8217; ele. Assim:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-246&quot; title=&quot;tkinter&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da1:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter2.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-247&quot; title=&quot;tkinter2&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter2.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da2:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-248&quot; title=&quot;tkinter3&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter3.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da3:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter4.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-249&quot; title=&quot;tkinter4&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkinter4.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;N&#227;o se esque&#231;a de deixar a resposta!! &amp;#8211; Obrigado&lt;/p&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/245/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/245/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=245&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Some data and machine learning talks videos from PyCon Us 2012</title>
		<link href="http://aimotion.blogspot.com/2012/03/some-data-and-machine-learning-talks.html"/>
		<id>tag:blogger.com,1999:blog-6000112949648041507.post-5858270689478241743</id>
		<updated>2012-03-12T21:47:54+00:00</updated>
		<content type="html">&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Unfortunately this year I couldn't participate of the &lt;a href=&quot;http://pycon.us/&quot;&gt;PyCon&lt;/a&gt;, the world meeting of Python developers. I had a poster accepted this year, but I had some problems that didn't allow me to go. Apart from that, the best part is that I could watch talks, tutorials and keynotes from the congress.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thanks to the PyVideo team, they uploaded all the videos from the PyCon quickly! The best ones that I enjoyed (of course related to data mining, natural language processing and machine learning) I will share with you:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=__s45TTXxps#!&quot;&gt;1. Pratical Machine Learning with Python&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=GxyfYEe8MiQ&quot;&gt;2. Python for data lovers: explore it, analyze it, map it&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=hnhN2_TpY8g&quot;&gt;3. Python and HDF5 - Fast Storage &amp;nbsp;for Large Data&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=Zv26xHYlc8s&quot;&gt;RestFul APIs with &amp;nbsp;TastyPie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=Ycvg0PCQ-sM&quot;&gt;5. Storm: The Hadoop of &amp;nbsp;Realtime Stream Processing&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=vfYul2E56fo&quot;&gt;6. Data , Design and Meaning&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=Mv3xgBQJPaE&quot;&gt;7. Graph Processing with Python&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=qbYYamU42Sw&quot;&gt;8. pandas: powerful data analysis tools for Python&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=YyEReiAYGlU&quot;&gt;9. Sage: Open Source Math in Python&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt; &lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=Iw9-GckD-gQ&quot;&gt;10. High Performance Python 1&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt; &lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=xHqlzuPq_qQ&quot;&gt;11. High Performance Python 2&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=Zd5dfooZWG4&quot;&gt;11. Introduction to Interactive Predictive Analytics in Python with scikit-learn&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=P7SVi0YTIuE&quot;&gt;12. Plotting with Matplotlib&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=2G5YTlheCbw&quot;&gt;13. Ipython in-depth: high-productive interactive and parallel python&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=w26x-z-BdWQ&quot;&gt;14. Data analysis in Python with pandas&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=qgGqaBAEy3Q&quot;&gt;15. Social Network analysis with Python&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt; &lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=bobeo5kFz1g&quot;&gt;16. Bayesian statistics made as simple as possible&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;/div&gt;&lt;br /&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;a href=&quot;http://www.youtube.com/watch?feature=player_embedded&amp;v=26wgEsg9Mcc&quot;&gt;17. IPython: Python at your fingertips&lt;/a&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;There are some of talks and tutorials that I enjoyed a lot. I recommend you to take a look at all the videos available from PyCon at this &lt;a href=&quot;http://pyvideo.org/category/17/pycon-us-2012&quot;&gt;link&lt;/a&gt;.&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;I really hope next &amp;nbsp;year I can go to this meeting :)&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;Cheers,&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;center&gt;Marcel&lt;/center&gt;&lt;center&gt;&lt;br /&gt;&lt;/center&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/6000112949648041507-5858270689478241743?l=aimotion.blogspot.com&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</content>
		<author>
			<name>Marcel Caraciolo</name>
			<email>noreply@blogger.com</email>
			<uri>http://aimotion.blogspot.com/</uri>
		</author>
		<source>
			<title type="html">Artificial Intelligence in Motion</title>
			<subtitle type="html">Blog about topics related to Artificial Intelligence.</subtitle>
			<link rel="self" href="http://aimotion.blogspot.com/feeds/posts/default"/>
			<id>tag:blogger.com,1999:blog-6000112949648041507</id>
			<updated>2012-05-17T06:44:38+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/12/aula-python-11-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=239</id>
		<updated>2012-03-12T19:46:21+00:00</updated>
		<content type="html">&lt;p&gt;Continuando a lista de exerc&#237;cios Python, da Estrutura de Decis&#227;o&#8230;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 11&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;&amp;#8220;As Organiza&#231;&#245;es Tabajara resolveram dar um aumento de sal&#225;rio aos seus colaboradores e lhe contraram para desenvolver o programa que calcular&#225; os reajustes.&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fa&#231;a um programa que recebe o sal&#225;rio de um colaborador e o reajuste segundo o seguinte crit&#233;rio, baseado no sal&#225;rio atual:&lt;/li&gt;
&lt;li&gt;sal&#225;rios at&#233; R$ 280,00 (incluindo) : aumento de 20%&lt;/li&gt;
&lt;li&gt;sal&#225;rios entre R$ 280,00 e R$ 700,00 : aumento de 15%&lt;/li&gt;
&lt;li&gt;sal&#225;rios entre R$ 700,00 e R$ 1500,00 : aumento de 10%&lt;/li&gt;
&lt;li&gt;sal&#225;rios de R$ 1500,00 em diante : aumento de 5%&#160;Ap&#243;s o aumento ser realizado, informe na tela:&lt;/li&gt;
&lt;li&gt;o sal&#225;rio antes do reajuste;&lt;/li&gt;
&lt;li&gt;o percentual de aumento aplicado;&lt;/li&gt;
&lt;li&gt;o valor do aumento;&lt;/li&gt;
&lt;li&gt;o novo sal&#225;rio, ap&#243;s o aumento.&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Entendo o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Para realizar o&#160;exerc&#237;cio precisamos saber efetuar porcentagens em Python, que praticamente a mesma coisa em qualquer linguagem programa. Veja:&lt;/p&gt;
&lt;pre&gt;por = (20 / 100.0) * 150&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Analizando:&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;&#160;&lt;em&gt;por&lt;/em&gt; nada mais &#233; que uma&#160;vari&#225;vel que recebe o valor da conta&lt;br /&gt;
20 &#233; a porcentagem (20%, 30% 15%, etc)&lt;br /&gt;
100.0 &amp;#8211;&amp;gt; de 100%&lt;br /&gt;
* 150 &#233; de quem queremos a porcentagem -&amp;gt; 20 % de 150 ;D&lt;/p&gt;
&lt;p&gt;Sabendo realizar porcentagens, o programa praticamente j&#225; esta completo, vamos apenas utilizar if e else para realizar testes. Tais como:&lt;/p&gt;
&lt;pre&gt;salario = input('Digite seu sal&#225;rio: ')

if salario &amp;lt;= 280:      #SE O SALARIO FOR MENOR QUE 280
    {executa alguma fun&#231;&#227;o}&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;salario = input(&amp;#8216;Digite seu sal&#225;rio: &amp;#8216;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#Se o salario for maior que 280&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if salario &amp;lt;= 280.00:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; por = (20 / 100.0) * salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; resultado = salario + por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; print &amp;#8216;Seu sal&#225;rio antes do reajuste: R$&amp;#8217;,salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; print &amp;#8216;Percentual aumentado: %&amp;#8217;,20&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; print &amp;#8216;O valor do aumento &#233;: R$&amp;#8217;,por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; print &amp;#8216;Com o reajuste, o seu sal&#225;rio &#233;: R$&amp;#8217;,resultado&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#Se o salario &#233; maior que 280 e menor que 700&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif salario &amp;gt; 280.00 and salario &amp;lt;= 700.00:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; por = (15 / 100.0) * salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; resultado = salario + por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Seu sal&#225;rio antes do reajuste: R$&amp;#8217;,salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Percentual aumentado: %&amp;#8217;,15&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;O valor do aumento &#233;: R$&amp;#8217;,por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Com o reajuste, o seu sal&#225;rio &#233;: R$&amp;#8217;,resultado&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#Se o salario &#233; maior que 700 e menor que 1500&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif salario &amp;gt; 700.00 and salario &amp;lt;= 1500.00:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; por = (10 / 100.0) * salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; resultado = salario + por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Seu sal&#225;rio antes do reajuste: R$&amp;#8217;,salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Percentual aumentado: %&amp;#8217;,10&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;O valor do aumento &#233;: R$&amp;#8217;,por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Com o reajuste, o seu sal&#225;rio &#233;: R$&amp;#8217;,resultado&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;#Se o salario &#233; maior que 1500&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;elif salario &amp;gt; 1500.00:&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; por = (5 / 100.0) * salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; resultado = salario + por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Seu sal&#225;rio antes do reajuste: R$&amp;#8217;,salario&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Percentual aumentado: %&amp;#8217;,5&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;O valor do aumento &#233;: R$&amp;#8217;,por&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&#160; &#160; &#160; &#160; print &amp;#8216;Com o reajuste, o seu sal&#225;rio &#233;: R$&amp;#8217;,resultado&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Sa&#237;da1:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu sal&#225;rio: 250&lt;br /&gt;
Seu sal&#225;rio antes do reajuste: R$ 250&lt;br /&gt;
Percentual aumentado: % 20&lt;br /&gt;
O valor do aumento &#233;: R$ 50.0&lt;br /&gt;
Com o reajuste, o seu sal&#225;rio &#233;: R$ 300.0&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da2:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu sal&#225;rio: 678&lt;br /&gt;
Seu sal&#225;rio antes do reajuste: R$ 678&lt;br /&gt;
Percentual aumentado: % 15&lt;br /&gt;
O valor do aumento &#233;: R$ 101.7&lt;br /&gt;
Com o reajuste, o seu sal&#225;rio &#233;: R$ 779.7&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da3:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu sal&#225;rio: 4000&lt;br /&gt;
Seu sal&#225;rio antes do reajuste: R$ 4000&lt;br /&gt;
Percentual aumentado: % 5&lt;br /&gt;
O valor do aumento &#233;: R$ 200.0&lt;br /&gt;
Com o reajuste, o seu sal&#225;rio &#233;: R$ 4200.0&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/239/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/239/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=239&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">Jogo desenvolvido por Matheus com PyGame e Python 3</title>
		<link href="http://pugpe.wordpress.com/2012/03/12/resumo-xix-encontro-python-pernambuco/"/>
		<id>http://pugpe.wordpress.com/?p=875</id>
		<updated>2012-03-12T04:01:59+00:00</updated>
		<content type="html">&lt;p&gt;Ol&#225; pessoal,&lt;/p&gt;
&lt;p&gt;Nesta &#250;ltima quinta-feira (08.03.2012) realizamos o&lt;strong&gt; XIX Encontro do Grupo de Usu&#225;rios de Python de Pernambuco&lt;/strong&gt;. A principal diferen&#231;a para os &#250;ltimos 8 encontros realizados foi que desta vez foi realizado &#224; noite dia de semana no ITBC sediado no Recife Antigo, bairro famoso do Recife conhecido pela hist&#243;ria e por sediar v&#225;rias empresas de TI e startups &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;Foi um encontro bem din&#226;mico e bem mais curto mais muito bem organizado! Quero agradecer a todos os membros, em especial, ultimamente ao Gileno e Fernando que est&#227;o dando uma for&#231;a muito grande nas atividades do nosso grupo! Valeu pessoal!! E tamb&#233;m a todos os presentes que estavam por l&#225;.&lt;/p&gt;
&lt;p&gt;Algumas fotos do p&#250;blico presente:&lt;/p&gt;
&lt;div id=&quot;attachment_886&quot; class=&quot;wp-caption aligncenter&quot;&gt;&lt;a href=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-19-45-40.jpg&quot;&gt;&lt;img class=&quot;size-medium wp-image-886&quot; title=&quot;P&#250;blico no XIX Encontro&quot; src=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-19-45-40.jpg?w=300&amp;h=225&quot; alt=&quot;P&#250;blico no XIX Encontro&quot; width=&quot;300&quot; height=&quot;225&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;P&#250;blico no XIX Encontro&lt;/p&gt;&lt;/div&gt;
&lt;div id=&quot;attachment_887&quot; class=&quot;wp-caption aligncenter&quot;&gt;&lt;a href=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-19-45-45.jpg&quot;&gt;&lt;img class=&quot;size-medium wp-image-887&quot; title=&quot;P&#250;blico no XIX Encontro&quot; src=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-19-45-45.jpg?w=300&amp;h=225&quot; alt=&quot;P&#250;blico no XIX Encontro&quot; width=&quot;300&quot; height=&quot;225&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;P&#250;blico no XIX Encontro&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;A nossa primeira palestra foi ministrada por Marcel Caraciolo sobre o @pugpe apresentando institucionalmente o grupo e algumas estat&#237;sticas sobre o grupo realizada em 2011. A palestra j&#225; bem conhecida pelo p&#250;blico e d&#225; umas boas vindas a todos que chegam!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.slideshare.net/marcelcaraciolo/palestra-institucional-pugpe&quot;&gt;Material da palestra&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A segunda palestra foi ministrada por Matheus Melo, que aceitou o desafio de aprender python em 1 semana e decidiu dar uma palestra sobre jogos com pygame. Foi bem legal especialmente porque ele n&#227;o sabia Python e decidiu aprender e usar suas habilidades em construir um simples jogo com PyGame e tamb&#233;m porque foi um jogo todo escrito com Python 3! &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt;  &#160;Muito show! Parab&#233;ns Matheus!&lt;/p&gt;
&lt;div id=&quot;attachment_883&quot; class=&quot;wp-caption aligncenter&quot;&gt;&lt;a href=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-19-45-55.jpg&quot;&gt;&lt;img class=&quot;size-medium wp-image-883&quot; title=&quot;Matheus palestrando sobre PyGame&quot; src=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-19-45-55.jpg?w=300&amp;h=225&quot; alt=&quot;Matheus palestrando sobre PyGame&quot; width=&quot;300&quot; height=&quot;225&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Matheus palestrando sobre PyGame&lt;/p&gt;&lt;/div&gt;
&lt;div id=&quot;attachment_884&quot; class=&quot;wp-caption aligncenter&quot;&gt;&lt;a href=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-20-21-23.jpg&quot;&gt;&lt;img class=&quot;size-medium wp-image-884&quot; title=&quot;Jogo desenvolvido por Matheus com PyGame e Python 3&quot; src=&quot;http://pugpe.files.wordpress.com/2012/03/2012-03-08-20-21-23.jpg?w=300&amp;h=225&quot; alt=&quot;Jogo desenvolvido por Matheus com PyGame e Python 3&quot; width=&quot;300&quot; height=&quot;225&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Jogo desenvolvido por Matheus com PyGame e Python 3&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;Seguem os &lt;a href=&quot;http://www.slideshare.net/matheuscmpm/xix-pugpe-pygame-game-development&quot;&gt;slides&lt;/a&gt; e o c&#243;digo-fonte da palestra:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/matheuscmpm/Pygame---Sample-01&quot;&gt;C&#243;digo-fonte do jogo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A pr&#243;xima palestra foi ministrada por Gileno e Fernando sobre t&#243;picos avan&#231;ados com Django onde eles apresentaram boas pr&#225;ticas a serem utilizadas nos Forms de Django e como criar um Custom -Widget &#160;e tamb&#233;m falaram como usar o South para migra&#231;&#245;es de forma f&#225;cil com banco de Dados.&lt;/p&gt;
&lt;p&gt;Material das suas palestras.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://bitbucket.org/Gileno/talk-django-forms&quot;&gt;C&#243;digo bitbucket Forms Django&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://bitbucket.org/fernandogrd/talk-migra-es-com-o-south/overview&quot;&gt;C&#243;digo bitbucket South&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://talks.2.s3-website-sa-east-1.amazonaws.com/#south&quot;&gt;Slides da palestra migrando com South&#160;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Por fim tivemos 2 palestras rel&#226;mpago. A primeira foi ministrada por Alvaro da Ogilvy que apresentou a empresa e os novos projetos que eles est&#227;o trabalhando inclusive com oportunidades para trabalho com Python! Pessoal interessado em trabalhar com Python com web eis uma &#243;tima oportunidade! A &#250;ltima da noite foi pelo membro Thiago Souza, um dos l&#237;deres t&#233;cnicos do projeto educacional Amadeus, um software livre CMS para os estudantes de todo o Brasil poderem estudar &#224; dist&#226;ncia. Ele foi todo escrito em Java e agora que est&#227;o decidindo fazer uma vers&#227;o 2.0, decidiram fazer todo ele em Python! &#160;Valeu pessoal!! E parab&#233;ns pela iniciativa!!! &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.slideshare.net/thiagosoara/2012-xix-pugpe-projeto-amadeus&quot;&gt;Slides da palestra sobre o Amadeus&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
E assim tivemos o nosso XIX Encontro, n&#227;o t&#227;o longo mais muito produtivo! E com muito conte&#250;do legal! &#160;Quero parabenizar a todos os palestrantes e nossos patrocinadores Orygens, Hostech e a Idealizza em especial que nos ajudou com o espa&#231;o!! &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;A boa not&#237;cia da noite &#233; que iniciaram os preparativos para o XX Encontro do Usu&#225;rios de Python de Pernambuco e que promete ser um dos maiores encontros da hist&#243;ria do grupo! Sim, bem maior que o&lt;a href=&quot;http://pugpe.wordpress.com/2011/02/13/resumo-x-encontro-python-pernambuco/&quot;&gt; X Encontro do grupo&lt;/a&gt;. &#160;Muitas novidades, muitas atividades e muito conte&#250;do por vir! Se voc&#234; for membro do grupo e deseja ajudar na organiza&#231;&#227;o do encontro, envie-me um &lt;a href=&quot;mailto:caraciol@gmail.com&quot;&gt;email&lt;/a&gt; e estarei &#224; disposi&#231;&#227;o para ajudar ou coloque um coment&#225;rio abaixo com seu e-mail explicaremos como participar!&lt;/p&gt;
&lt;p&gt;Valeu pessoal !&lt;/p&gt;
&lt;p&gt;Atenciosamente,&lt;/p&gt;
&lt;p&gt;Marcel Caraciolo&lt;/p&gt;
&lt;h3&gt;Links para os assuntos discutidos&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://python.org/&quot;&gt;Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://smallactsmanifesto.org/&quot;&gt;SmallActs Manifesto&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.pygame.org/news.html&quot;&gt;PyGame&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://south.aeracode.org/&quot;&gt;South&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs&quot;&gt;Forms Django&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.djangoproject.com/&quot;&gt;Django&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.ogilvy.com.br/&quot;&gt;Ogilvy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.softwarepublico.gov.br/ver-comunidade?community_id=9677539&quot;&gt;Amadeus&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/pugpe.wordpress.com/875/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/pugpe.wordpress.com/875/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=pugpe.wordpress.com&amp;blog=12164117&amp;post=875&amp;subd=pugpe&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PUG - PE</name>
			<uri>http://pugpe.wordpress.com</uri>
		</author>
		<source>
			<title type="html">PUG-PE</title>
			<subtitle type="html">Python em Pernambuco</subtitle>
			<link rel="self" href="http://pugpe.wordpress.com/feed/"/>
			<id>http://pugpe.wordpress.com/feed/</id>
			<updated>2012-05-03T03:44:26+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/10/aula-python-9-resolvido-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=237</id>
		<updated>2012-03-10T12:22:46+00:00</updated>
		<content type="html">&lt;p&gt;Ol&#225; Programadores, ontem postei que n&#227;o tinha conseguido resolver o&#160;exerc&#237;cio&#160;9 da Estrutura de Decis&#227;o, e o&#160;inteligent&#237;ssimo Henrique&#160;Lopes Resolveu para n&#243;s!!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Escrevendo o Programa!! &amp;#8211; Por Henrique Lopes!!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;# coding: utf-8
&quot;&quot;&quot;
	&amp;gt;&amp;gt;&amp;gt; decrescente(1, 2, 3)
	3
	2
	1
	&amp;gt;&amp;gt;&amp;gt; decrescente(100, 101, 102)
	102
	101
	100
	&amp;gt;&amp;gt;&amp;gt; decrescente(1, 9, 3)
	9
	3
	1
&quot;&quot;&quot;
def decrescente(*args):
	&quot;&quot;&quot;
		Fun&#231;&#227;o que ordena n&#250;mero da forma decrescente::
	&quot;&quot;&quot;
	numero = sorted(args, reverse=True)
	print &quot;\n&quot;.join(map(str, numero))

if __name__ == '__main__':
	n1 = input(&quot;Digite o 1&#176; numero: &quot;)
	n2 = input(&quot;Digite o 2&#176; numero: &quot;)
	n3 = input(&quot;Digite o 3&#176; numero: &quot;)

	decrescente(n1, n2, n3)&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Sa&#237;da 1:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#194;&#176; numero: 5&lt;br /&gt;
Digite o 2&#194;&#176; numero: 4&lt;br /&gt;
Digite o 3&#194;&#176; numero: 3&lt;br /&gt;
5&lt;br /&gt;
4&lt;br /&gt;
3&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;Sa&#237;da 2:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#194;&#176; numero: 1&lt;br /&gt;
Digite o 2&#194;&#176; numero: 1&lt;br /&gt;
Digite o 3&#194;&#176; numero: 1&lt;br /&gt;
1&lt;br /&gt;
1&lt;br /&gt;
1&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;Sa&#237;da 3:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#194;&#176; numero: 32&lt;br /&gt;
Digite o 2&#194;&#176; numero: 54&lt;br /&gt;
Digite o 3&#194;&#176; numero: 98&lt;br /&gt;
98&lt;br /&gt;
54&lt;br /&gt;
32&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/237/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/237/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=237&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">tkimter</title>
		<link href="http://powerpython.wordpress.com/2012/03/09/aplicacoes-graficas-com-python-1/"/>
		<id>http://powerpython.wordpress.com/?p=233</id>
		<updated>2012-03-09T17:49:28+00:00</updated>
		<content type="html">&lt;p&gt;&lt;em&gt;&lt;strong&gt;Ol&#225; Programadores!&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
Hoje vamos aprender a criar um programa com GUI!&lt;br /&gt;
Para quem n&#227;o sabe o que &#233; GUI, l&#225; vai : Graphics User Interface, traduzindo uma interface&#160;gr&#225;fica&lt;/p&gt;
&lt;h1&gt;&lt;strong&gt;Hello World!&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;Para nossa primeira aplica&#231;&#227;o vamos fazer o famoso HELLOWORLD!&lt;br /&gt;
Basicamente, vai ser um programa que contem um bot&#227;o, ao clicar nos mostra uma mensagem!&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Escrevendo o Programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Antes de tudo, vamos importar a&#160;biblioteca&#160;TKinter! E &#233; ela que vai nos proporcionar toda a interface. Por isso &#233;&#160;obrigat&#243;rio&#160;import&#225;lo&#160;!&lt;/p&gt;
&lt;pre&gt;import Tkinter&lt;/pre&gt;
&lt;p&gt;Depois criar um objeto root (estudaremos melhor depois)&lt;/p&gt;
&lt;pre&gt;root = Tkinter.Tk()&lt;/pre&gt;
&lt;p&gt;Agora podemos criar a fun&#231;&#227;o que sera executada ao clicar no bot&#227;o:&lt;/p&gt;
&lt;pre&gt;def helloworld():
    print 'helloworld'  #escreve helloworld&lt;/pre&gt;
&lt;p&gt;Agora criamos um bot&#227;o:&lt;/p&gt;
&lt;pre&gt;b = Tkinter.Button(root, text =&quot;Hello&quot;, command = helloworld)&lt;/pre&gt;
&lt;p&gt;Entendendo Melhor &amp;#8211;&amp;gt; &lt;em&gt;&lt;strong&gt;b&lt;/strong&gt;&lt;/em&gt; : &#233; o nome do&#160;bot&#227;o&#160;(!n&#227;o o&#160;texto!)&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;text&lt;/strong&gt;&lt;/em&gt; =&amp;#8221;Hello&amp;#8221; : &#160;&#233; o texto do bot&#227;o&lt;br /&gt;
&lt;em&gt;&lt;strong&gt;command = helloworld&lt;/strong&gt; &lt;/em&gt;: &#233; a fun&#231;&#227;o a ser executado&lt;/p&gt;
&lt;p&gt;Agora colocamos o bot&#227;o na tela, e iniciamos um loop (um programa sem fim, sempre executando)&lt;/p&gt;
&lt;pre&gt;b.pack()
root.mainloop()&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Programa inteiro:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;import Tkinter

root = Tkinter.Tk()

def helloCallBack():
    print 'oi'

b = Tkinter.Button(root, text =&quot;Hello&quot;, command = helloCallBack)

b.pack()
root.mainloop()&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/tkimter.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-234&quot; title=&quot;tkimter&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/tkimter.png?w=640&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/233/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/233/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=233&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">decisao-10</title>
		<link href="http://powerpython.wordpress.com/2012/03/09/aula-python-10-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=227</id>
		<updated>2012-03-09T14:09:45+00:00</updated>
		<content type="html">&lt;p&gt;Andei postando pouco&#160;ultimamente poque estou trabalhando em um projeto pessoal, e anda faltando tempo para postar, mais n&#227;o vou parar!!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Aten&#231;&#227;o:&lt;/strong&gt;&lt;/em&gt; Pulei o&#160;exerc&#237;cio&#160;9, porque n&#227;o consegui resolver. Ele pede que mostre os tr&#234;s&#160;n&#250;meros&#160;digitados pelo&#160;usu&#225;rio&#160;em forma&#160;decrescente, se souber resolver, responda nos coment&#225;rios, eu me envie um&#160;Email&#160;powerpython@hotmail.com.br&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Exerc&#237;cio 9:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;n1 = input('Digite o 1&#176; numero: ')
n2 = input('Digite o 2&#176; numero: ')
n3 = input('Digite o 3&#176; numero: ')

if n1 &amp;gt; n2 and n1 &amp;gt;n3:
    print n1
elif n2 &amp;gt; n3 and n2 &amp;gt; n1:
    print n2
elif n3 &amp;gt; n1 and n3 &amp;gt; n2:
    print n3

#agora o numero do meio
if n1 &amp;gt; n3 and n1 &amp;lt; n2:     print n1 elif n2 &amp;gt; n1 and n2 &amp;lt; n3:     print n2 elif n3 &amp;gt; n2 and n3 &amp;gt; n1:
    print n3
elif n2 &amp;lt; n1 and n2 &amp;gt; n3:
    print n2

if n1 &amp;lt; n2 and n1 &amp;lt; n3:
    print n1
elif n2 &amp;lt; n3 and n2 &amp;lt; n1:
    print n2
elif n3 &amp;lt; n1 and n3 &amp;lt; n2:
    print n3&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Saida:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#176; numero: 1&lt;br /&gt;
Digite o 2&#176; numero: 9&lt;br /&gt;
Digite o 3&#176; numero: 3&lt;br /&gt;
9&lt;br /&gt;
1&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Continuando a lista de&#160;exerc&#237;cios&#160;Python, da Estrutura de Decis&#227;o&#8230;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 10&#176; diz assim:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;&amp;#8220;Fa&#231;a um Programa que pergunte em que turno voc&#234; estuda. Pe&#231;a para digitar M-matutino ou V-Vespertino ou N- Noturno. Imprima a mensagem &amp;#8220;Bom Dia!&amp;#8221;, &amp;#8220;Boa Tarde!&amp;#8221; ou &amp;#8220;Boa Noite!&amp;#8221; ou &amp;#8220;Valor Inv&#225;lido!&amp;#8221;, conforme o caso&amp;#8221;&#160;&lt;/em&gt;&lt;/p&gt;
&lt;h1&gt;&lt;em&gt;&lt;strong&gt;O Fluxograma:&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a href=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-10.png&quot;&gt;&lt;img class=&quot;alignnone size-full wp-image-228&quot; title=&quot;decisao-10&quot; src=&quot;http://powerpython.files.wordpress.com/2012/03/decisao-10.png?w=640&amp;h=672&quot; alt=&quot;&quot; width=&quot;640&quot; height=&quot;672&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Escrevendo o programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;turno = raw_input('Digite seu turno: M-matutino ou V-Vespertino ou N- Noturno: ')

if turno == 'M':    #o usuario estuda de manha?
    print 'Bom Dia !!'
elif turno == 'V':  #o usuario estuda a tarde?
    print 'Boa Tarde!!'
elif turno == 'N':  #o usuario estuda de noite?
    print 'Boa Noite!!'
else:
    print 'Intrada invalida'&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;Sa&#237;das&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da1:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu turno: M-matutino ou V-Vespertino ou N- Noturno: M&lt;br /&gt;
Bom Dia !!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da2:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu turno: M-matutino ou V-Vespertino ou N- Noturno: V&lt;br /&gt;
Boa Tarde!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da3:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu turno: M-matutino ou V-Vespertino ou N- Noturno: N&lt;br /&gt;
Boa Noite!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da4:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite seu turno: M-matutino ou V-Vespertino ou N- Noturno: nao estudo&lt;br /&gt;
Intrada invalida&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/227/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/227/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=227&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/07/aula-python-8-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=222</id>
		<updated>2012-03-07T16:37:34+00:00</updated>
		<content type="html">&lt;p&gt;Continuando a lista de exerc&#237;cios Python, da Estrutura de Decis&#227;o&#8230;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;8&#176;&#160;exerc&#237;cio&#160;diz&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt; assim:&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;em&gt;&amp;#8220;Fa&#231;a um programa que pergunte o pre&#231;o de tr&#234;s produtos e informe qual produto voc&#234; deve comprar, sabendo que a decis&#227;o &#233; sempre pelo mais barato&amp;#8221;&lt;/em&gt;&lt;/p&gt;
&lt;h1&gt;&lt;em&gt;&lt;strong&gt;Entendendo o programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h1&gt;
&lt;p&gt;Esse programa &#233; simplesmente simples. Praticamente o mesmo da aula 6. S&#243; que da aula 6 mostra o valor, neste mostraremos o menor valor.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Escrevendo o programa:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;p1 = input(&quot;Digite o 1&#176; pre&#231;o: &quot;)
p2 = input(&quot;Digite o 2&#176; pre&#231;o: &quot;)
p3 = input(&quot;Digite o 3&#176; pre&#231;o: &quot;)

def menor():
    if p1 &amp;lt; p2 and p3 and p1:
        print 'O produto 1 &#233; o mais barato!!'
    elif p2 &amp;lt; p1 and p3:
        print 'O produto 2 &#233; o mais barato!!'
    elif p3 &amp;lt; p1 and p2:
        print 'O produto 3 &#233; o mais barato!!'

    #Se alguns numeros forem iguais

    elif p1 == p2 and p1 and p2 &amp;lt; p3:
        print 'O produto 1 e 2 s&#227;o os mais baratos!!'
    elif p1 == p3 and p1 and p3 &amp;lt; p2:
        print 'O produto 1 e 3 s&#227;o os mais baratos!!'
    elif p2 == p3 and p2 and p3 &amp;lt; p1:
        print 'O produto 1 e 2 s&#227;o os mais baratos!!'

    #Se todo os numero forem iguais

    else:
        print 'Todos os pre&#231;os s&#227;o iguais!!'

menor()  #chame a fun&#231;&#227;o menor&lt;/pre&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;Deixando o programa mais&#160;amig&#225;vel:&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Para deixar o &#160;programa mais&#160;amig&#225;vel, vamos colocar uma apresenta&#231;&#227;o do que se trata o programa:&lt;/p&gt;
&lt;pre&gt;print'Bem vindo ao exercicio 8 da Estrutura de Decis&#227;o'&lt;/pre&gt;
&lt;p&gt;Ap&#243;s feito isso, vamos separar esse apresenta&#231;&#227;o do resto do programa. Deste jeito:&lt;/p&gt;
&lt;pre&gt;print '-------------------------------------------------'&lt;/pre&gt;
&lt;p&gt;Mais para deixar o programa mais interessante vamos colocar um &amp;#8216;delay&amp;#8217; entre a apresenta&#231;&#227;o e a execu&#231;&#227;o do Programa.&lt;br /&gt;
Oque &#233; um delay? &amp;#8211; A tradu&#231;&#227;o literal &#233; &amp;#8216;atrasar&amp;#8217;, ou seja vamos apresentar o programa, esperar um pouco, e executar o programa. Assim:&lt;/p&gt;
&lt;pre&gt;import timer # &#233; preciso importar a biblioteca time!!

print 'Bem vindo ao exercicio 8 da Estrutura de Desi&#231;&#227;o'

time.sleep(0.8)   #o programa espera 0.800 milisegundos
print '-------------------------------------------------'
print ''       #n&#227;o escrevemos nada para dar uma quebra de linha&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;O programa completo:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;pre&gt;import time

print 'Bem vindo ao exercicio 8 da Estrutura de Desi&#231;&#227;o'

time.sleep(0.8)
print '-------------------------------------------------'
print ''

p1 = input(&quot;Digite o 1&#176; pre&#231;o: &quot;)
p2 = input(&quot;Digite o 2&#176; pre&#231;o: &quot;)
p3 = input(&quot;Digite o 3&#176; pre&#231;o: &quot;)

def menor():
    if p1 &amp;lt; p2 and p3 and p1:
        print 'O produto 1 &#233; o mais barato!!'
    elif p2 &amp;lt; p1 and p3:
        print 'O produto 2 &#233; o mais barato!!'
    elif p3 &amp;lt; p1 and p2:
        print 'O produto 3 &#233; o mais barato!!'

    #Se alguns numeros forem iguais

    elif p1 == p2 and p1 and p2 &amp;lt; p3:
        print 'O produto 1 e 2 s&#227;o os mais baratos!!'
    elif p1 == p3 and p1 and p3 &amp;lt; p2:
        print 'O produto 1 e 3 s&#227;o os mais baratos!!'
    elif p2 == p3 and p2 and p3 &amp;lt; p1:
        print 'O produto 1 e 2 s&#227;o os mais baratos!!'

    #Se todo os numero forem iguais

    else:
        print 'Todos os pre&#231;os s&#227;o iguais!!'

menor() # chama a fun&#231;&#227;o menor!&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;das:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Bem vindo ao exercicio 8 da Estrutura de Desi&#231;&#227;o&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-&lt;/p&gt;
&lt;p&gt;Digite o 1&#176; pre&#231;o: 5&lt;br /&gt;
Digite o 2&#176; pre&#231;o: 2&lt;br /&gt;
Digite o 3&#176; pre&#231;o: 2.20&lt;br /&gt;
O produto 2 &#233; o mais barato!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;Sa&#237;da2&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Bem vindo ao exercicio 8 da Estrutura de Desi&#231;&#227;o&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-&lt;/p&gt;
&lt;p&gt;Digite o 1&#176; pre&#231;o: 5&lt;br /&gt;
Digite o 2&#176; pre&#231;o: 5&lt;br /&gt;
Digite o 3&#176; pre&#231;o: 5&lt;br /&gt;
Todos os pre&#231;os s&#227;o iguais!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sa&#237;da3&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Bem vindo ao exercicio 8 da Estrutura de Desi&#231;&#227;o&lt;br /&gt;
&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-&lt;/p&gt;
&lt;p&gt;Digite o 1&#176; pre&#231;o: 5&lt;br /&gt;
Digite o 2&#176; pre&#231;o: 2&lt;br /&gt;
Digite o 3&#176; pre&#231;o: 1&lt;br /&gt;
O produto 2 &#233; o mais barato!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/222/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/222/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=222&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/06/aula-python-7-estrutura-de-decisao/"/>
		<id>http://powerpython.wordpress.com/?p=218</id>
		<updated>2012-03-06T22:37:17+00:00</updated>
		<content type="html">&lt;p&gt;Andei postando pouco&#160;ultimamente poque estou trabalhando em um projeto pessoal, e anda faltando tempo para postar, mais n&#227;o vou parar!!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Continuando a lista de&#160;exerc&#237;cios&#160;Python, da Estrutura de Decis&#227;o&#8230;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;O 7&#176;&#160;exerc&#237;cio&#160;diz assim:&lt;br /&gt;
&lt;/strong&gt;&amp;#8220;Fa&#231;a um Programa que leia tr&#234;s n&#250;meros e mostre o maior e o menor deles&amp;#8221;&lt;/em&gt;&lt;/p&gt;
&lt;h1&gt;&lt;strong&gt;&lt;em&gt;Entendo o programa:&lt;/em&gt;&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;Na aula passada (aula 6, &lt;a href=&quot;http://powerpython.wordpress.com/2012/03/05/aula-python-6-estrutura-de-decisao/&quot;&gt;clique aqui para ver&lt;/a&gt;) fizemos um programa&#160;parecid&#237;ssimo&#160;com este, a unica diferen&#231;a era que ele s&#243; exibia o maior numero, e agora&#160;precisamos&#160;exibir o maior e o menor.&lt;br /&gt;
Para isso vamos utilizar praticamente o mesmo c&#243;digo, mudando algumas&#160;coisinhas para fazer ele mostrar o menor numero. E ent&#227;o dividimos o c&#243;digo em duas fun&#231;&#245;es (&lt;a href=&quot;http://powerpython.wordpress.com/2012/03/06/aula-python-criando-funcoes/&quot; target=&quot;_blank&quot;&gt;veja aula sobre fun&#231;&#245;es&lt;/a&gt;) : uma para o menor numero, e a outra para o maior. Assim:&lt;/p&gt;
&lt;pre&gt;#o c&#243;digo fico beeeem grande...
def maior():
    if n1 &amp;gt; n2 and n3 and n1:
        print n1, '&#233; o maior numero!!'
    elif n2 &amp;gt; n1 and n3:
        print n2,'&#233; o maior numero!!'
    elif n3 &amp;gt; n1 and n2:
        print n3,'&#233; o maior numero!!'

    #Se alguns numeros forem iguais

    elif n1 == n2 and n1 and n2 &amp;gt; n3:
        print n1,'&#233;','o maior!!'
    elif n1 == n3 and n1 and n3 &amp;gt; n2:
        print n1,'&#233;','o maior!!'
    elif n2 == n3 and n2 and n3 &amp;gt; n1:
        print n2,'&#233;','o maior!!'
    #todos os numeros iguais
    elif n1 == n2 and n3:
        print 'todos o numeros s&#227;o iguais'

def menor():
    if n1 &amp;lt; n2 and n3 and n1:
        print n1, '&#233; o menor numero!!'
    elif n2 &amp;lt; n1 and n3:
        print n2,'&#233; o menor numero!!'
    elif n3 &amp;lt; n1 and n2:
        print n3,'&#233; o menor numero!!'

    #Se alguns numeros forem iguais

    elif n1 == n2 and n1 and n2 &amp;lt; n3:
        print n1,'&#233;','o menor!!'
    elif n1 == n3 and n1 and n3 &amp;lt; n2:
        print n1,'&#233;','o menor!!'
    elif n2 == n3 and n2 and n3 &amp;lt; n1:
        print n2,'&#233;','o menor!!'&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;O Programa Completo:&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;pre&gt;n1 = input('Digite o 1&#176; numero: ')
n2 = input('Digite o 2&#176; numero: ')
n3 = input('Digite o 3&#176; numero: ')

def maior():
    if n1 &amp;gt; n2 and n3 and n1:
        print n1, '&#233; o maior numero!!'
    elif n2 &amp;gt; n1 and n3:
        print n2,'&#233; o maior numero!!'
    elif n3 &amp;gt; n1 and n2:
        print n3,'&#233; o maior numero!!'

    #Se alguns numeros forem iguais

    elif n1 == n2 and n1 and n2 &amp;gt; n3:
        print n1,'&#233;','o maior!!'
    elif n1 == n3 and n1 and n3 &amp;gt; n2:
        print n1,'&#233;','o maior!!'
    elif n2 == n3 and n2 and n3 &amp;gt; n1:
        print n2,'&#233;','o maior!!'
    #todos os numeros iguais
    elif n1 == n2 and n3:
        print 'todos o numeros s&#227;o iguais'

def menor():
    if n1 &amp;lt; n2 and n3 and n1:
        print n1, '&#233; o menor numero!!'
    elif n2 &amp;lt; n1 and n3:
        print n2,'&#233; o menor numero!!'
    elif n3 &amp;lt; n1 and n2:
        print n3,'&#233; o menor numero!!'

    #Se alguns numeros forem iguais

    elif n1 == n2 and n1 and n2 &amp;lt; n3:
        print n1,'&#233;','o menor!!'
    elif n1 == n3 and n1 and n3 &amp;lt; n2:
        print n1,'&#233;','o menor!!'
    elif n2 == n3 and n2 and n3 &amp;lt; n1:
        print n2,'&#233;','o menor!!'

maior()   #chama metodo para descubrir o maior
menor()   #chama metodo para descubrir o menor&lt;/pre&gt;
&lt;h2&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;Sa&#237;das&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Saida1:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#176; numero: 5&lt;br /&gt;
Digite o 2&#176; numero: 5&lt;br /&gt;
Digite o 3&#176; numero: 1&lt;br /&gt;
5 &#233; o maior!!&lt;br /&gt;
1 &#233; o menor numero!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;Saida2:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#176; numero: 3&lt;br /&gt;
Digite o 2&#176; numero: 3&lt;br /&gt;
Digite o 3&#176; numero: 3&lt;br /&gt;
todos o numeros s&#227;o iguais&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;Saida3&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
Digite o 1&#176; numero: 5&lt;br /&gt;
Digite o 2&#176; numero: 8&lt;br /&gt;
Digite o 3&#176; numero: 3&lt;br /&gt;
8 &#233; o maior numero!!&lt;br /&gt;
5 &#233; o menor numero!!&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/218/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/218/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=218&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">powerpython</title>
		<link href="http://powerpython.wordpress.com/2012/03/06/aula-python-criando-funcoes/"/>
		<id>http://powerpython.wordpress.com/?p=102</id>
		<updated>2012-03-06T17:30:14+00:00</updated>
		<content type="html">&lt;p&gt;&lt;em&gt;&lt;strong&gt;Sejam bem vindos a mais uma aula de Python!!!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Fun&#231;&#245;es&lt;/strong&gt;&lt;/em&gt; &amp;#8211; &lt;em&gt;&amp;#8220;Fun&#231;&#245;es s&#227;o blocos de c&#243;digo com nome e argumentos (algumas fun&#231;&#245;es n&#227;o possuem argumentos), usadas para realizar tarefas. Algumas fun&#231;&#245;es j&#225; est&#227;o presentes no interpretador, como exemplo a usada no c&#225;lculo do seno de um &#226;ngulo que est&#225; presente na biblioteca math.sin de&#160;Python, ou at&#233; fun&#231;&#227;o print&amp;#8221;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Criando fun&#231;&#245;es em Python!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&#201; muito simples criar fun&#231;&#245;es, vamos imaginar que temos de fazer um programa que usa muito essa instru&#231;&#227;o:&lt;/p&gt;
&lt;pre&gt;print 'C&#243;digo registrado com sucesso'
print 'Digite outro C&#243;digo: '&lt;/pre&gt;
&lt;p&gt;E em vez de sempre ficar escrevendo sempre de novo, criamos uma fun&#231;&#227;o para isso:&lt;/p&gt;
&lt;pre&gt;def codigo(): #codigo &#233; o nome da fun&#231;&#227;o
    print 'C&#243;digo registrado com sucesso'
    print 'Digite outro C&#243;digo: '

codigo()     #assim que chamamos a fun&#231;&#227;o&lt;/pre&gt;
&lt;h2&gt;&lt;em&gt;&lt;strong&gt;Argumentos para fun&#231;&#245;es:&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;Tamb&#233;m podes fazer argumentos para nossas fun&#231;&#245;es.&lt;br /&gt;
Imaginamos que temos de fazer uma fun&#231;&#227;o como esta:&lt;/p&gt;
&lt;pre&gt;n = input(&quot;digite um numero: &quot;)

def teste():
    if n &amp;gt;= 5:
        print '&#233; maior que 5'
    elif n &amp;lt;= 5:
        print '&#233; menor que 5'&lt;/pre&gt;
&lt;p&gt;S&#243; que imagine que em vez da&#160;vari&#225;vel n, queremos fazer toda essa fun&#231;&#227;o s&#243; que com outra&#160;vari&#225;vel. Ent&#227;o em vez de colocar n colocamos o valor de var( poderia ser qualquer outro nome). Exemplo:&lt;/p&gt;
&lt;pre&gt;n1 = input('Digite um numero: ')
n2 = input('Digite segundo numero: ')

def teste(var):
    if var &amp;gt;= 5:
        print '&#233; maior que 5'
    elif var &amp;lt;= 5:
        print '&#233; menor que 5'&#160;

teste(var = n1)   #realiza teste com n1
teste(var = n2)&#160;  #realiza teste com n2&lt;/pre&gt;
&lt;h2&gt;&lt;strong&gt;&lt;em&gt;&lt;a href=&quot;http://clicktotweet.com/GdXve&quot;&gt;SE VOC&#202; GOSTOU CLIQUE AQUI!!&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;DEIXE SUAS &#160;DUVIDAS NOS&#160;COMENT&#193;RIOS, OU ENVIE UM EMAIL PARA: powerpython@hotmail.com.br.&lt;/p&gt;
&lt;h2&gt;&lt;em&gt;Me segue no Twitter !!:&#160;&lt;a href=&quot;https://twitter.com/#!/powerpython&quot;&gt;@powerpython&lt;/a&gt;&lt;/em&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;&lt;em&gt;COMENTEM!!&lt;/em&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/powerpython.wordpress.com/102/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/powerpython.wordpress.com/102/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=powerpython.wordpress.com&amp;blog=32789035&amp;post=102&amp;subd=powerpython&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PowerPython</name>
			<uri>http://powerpython.wordpress.com</uri>
		</author>
		<source>
			<title type="html">powerpython</title>
			<subtitle type="html">Just another WordPress.com site</subtitle>
			<link rel="self" href="http://powerpython.wordpress.com/feed/"/>
			<id>http://powerpython.wordpress.com/feed/</id>
			<updated>2012-04-10T21:44:25+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="en">
		<title type="html">Monkey, do you remember?</title>
		<link href="http://feedproxy.google.com/~r/Fechatag/~3/U2XDF6U3ufA/"/>
		<id>http://elcio.com.br/?p=3645</id>
		<updated>2012-03-06T15:40:13+00:00</updated>
		<content type="html">&lt;p&gt;&lt;img class=&quot;aligncenter size-full wp-image-3646&quot; title=&quot;monkey_212&quot; src=&quot;http://elcio.com.br/wp-content/uploads/2012/02/monkey_212.gif&quot; alt=&quot;&quot; width=&quot;212&quot; height=&quot;246&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Lembra? Olha &lt;a href=&quot;http://www.terra.com.br/clubeterra/promos_fixas/monkey_form.htm&quot;&gt;o que eu achei&lt;/a&gt; (r&#225;pido, antes que tirem do ar&amp;#8230;)&lt;/p&gt;
&lt;!-- boo-widget start --&gt;
          
          
          &lt;!-- boo-widget end --&gt;
&lt;p&gt;&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/ofgimzaT2kv_QaX3ZRtufuaYUcA/0/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/ofgimzaT2kv_QaX3ZRtufuaYUcA/0/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://feedads.g.doubleclick.net/~a/ofgimzaT2kv_QaX3ZRtufuaYUcA/1/da&quot;&gt;&lt;img src=&quot;http://feedads.g.doubleclick.net/~a/ofgimzaT2kv_QaX3ZRtufuaYUcA/1/di&quot; border=&quot;0&quot; ismap=&quot;true&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=U2XDF6U3ufA:9GuBVb6jS04:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?d=yIl2AUoC8zA&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/Fechatag?a=U2XDF6U3ufA:9GuBVb6jS04:D7DqB2pKExk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/Fechatag?i=U2XDF6U3ufA:9GuBVb6jS04:D7DqB2pKExk&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;</content>
		<author>
			<name>Elcio Luiz Ferreira</name>
			<uri>http://elcio.com.br</uri>
		</author>
		<source>
			<title type="html">fechaTag</title>
			<subtitle type="html">HTML5, CSS, Tableless, Desenvolvimento Web, Python, Linux</subtitle>
			<link rel="self" href="http://elcio.com.br/tag/programacao/feed/"/>
			<id>http://elcio.com.br/tag/programacao/feed/</id>
			<updated>2012-05-14T16:44:45+00:00</updated>
		</source>
	</entry>

	<entry xml:lang="pt-br">
		<title type="html">Convite para o XIX Encontro do PUG-PE</title>
		<link href="http://pugpe.wordpress.com/2012/03/06/convite-para-o-xix-encontro-do-grupo-de-usuarios-de-python-de-pernambuco/"/>
		<id>http://pugpe.wordpress.com/?p=872</id>
		<updated>2012-03-06T12:13:52+00:00</updated>
		<content type="html">&lt;p&gt;Ol&#225; pessoal,&lt;/p&gt;
&lt;p&gt;Segue o convite a todos interessados em participar do nosso &lt;strong&gt;XIX Encontro do Grupo de Usu&#225;rios de Python de Pernambuco&lt;/strong&gt; que ser&#225; realizado nesta edi&#231;&#227;o nas depend&#234;ncia do&lt;strong&gt; Audit&#243;rio do pr&#233;dio do ITBC sediado no Recife Antigo na rua da guia,&lt;/strong&gt; no dia&lt;strong&gt; 08/03 (Quinta-feira) a partir das 19:00&lt;/strong&gt;.&lt;/p&gt;
&lt;div class=&quot;wp-caption aligncenter&quot;&gt;&lt;img class=&quot;  &quot; title=&quot;Convite para o XIX Encontro do PUG-PE&quot; src=&quot;http://pug-pe.python.org.br/encontro/xix/img/banner/banner.png&quot; alt=&quot;Convite para o XIX Encontro do PUG-PE&quot; width=&quot;470&quot; height=&quot;141&quot; /&gt;&lt;p class=&quot;wp-caption-text&quot;&gt;Convite para o XIX Encontro do PUG-PE&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Site com &#160;programa&#231;&#227;o: http://pug.pe&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Teremos palestras sobre Django e PyGame com os membros Fernando Rocha, Gileno Filho e Matheus Melo respectivamente. &#160; Estas palestras focam no desenvolvimento de Django com t&#243;picos avan&#231;ados (vale a pena assistir a todos que j&#225; trabalham com Django) na fases de desenvolvimento, tdd e deploy. &#160;Na palestra do Matheus, ele apresentar&#225; como desenvolver jogos iniciais com PyGame. &#160;Vale a pena assistir! Fora as palestras rel&#226;mpagos e o bom networking gerado durante estes encontros. &lt;img src=&quot;http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;
&lt;p&gt;O encontro &#233; gratuito, e para quem n&#227;o conhece Python eis uma excelente oportunidade de conhecer a plataforma de maior crescimento em 2010 segundo o &#237;ndice Tiobe [2]. &#201; uma linguagem de programa&#231;&#227;o multi-plataforma e multi-paradigma presente em diversos nichos desde computa&#231;&#227;o cient&#237;fica, web, embarcados e at&#233; gr&#225;fica! Para mais informa&#231;&#245;es ver a entrevista do Marcel, moderador do grupo sobre a plataforma Python [3]. Uma &#243;tima oportunidade de fazer networking, aprendizado e conversar sobre software livre e desenvolvimento colaborativo! Participe da nossa lista de discuss&#227;o para troca de id&#233;ias [4]. O evento est&#225; sendo patrocinado pelas startups pernambucanas Orygens, Idealizza e Hostech e com apoio da Softex.&lt;/p&gt;
&lt;p&gt;[1] http://pug.pe&lt;/p&gt;
&lt;p&gt;[2] http://www.geeks3d.com/20110121/tiobe-index-january-2011-python-wins-the-tiobe-programming-language-award-of-2010/&lt;/p&gt;
&lt;p&gt;[3] http://www.citi.org.br/blog/2010/12/14/python-entenda-a-tecnologia/&lt;/p&gt;
&lt;p&gt;[4] https://groups.google.com/group/pug-pe?hl=pt&lt;/p&gt;
&lt;p&gt;Aguardamos a presen&#231;a de todos!&lt;/p&gt;
&lt;p&gt;Atenciosamente,&lt;/p&gt;
&lt;p&gt;Equipe PUG-PE&lt;/p&gt;
&lt;br /&gt;  &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godelicious/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/delicious/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gofacebook/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/facebook/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gotwitter/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/twitter/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gostumble/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/stumble/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/godigg/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/digg/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/goreddit/pugpe.wordpress.com/872/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/reddit/pugpe.wordpress.com/872/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://stats.wordpress.com/b.gif?host=pugpe.wordpress.com&amp;blog=12164117&amp;post=872&amp;subd=pugpe&amp;ref=&amp;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
		<author>
			<name>PUG - PE</name>
			<uri>http://pugpe.wordpress.com</uri>
		</author>
		<source>
			<title type="html">PUG-PE</title>
			<subtitle type="html">Python em Pernambuco</subtitle>
			<link rel="self" href="http://pugpe.wordpress.com/feed/"/>
			<id>http://pugpe.wordpress.com/feed/</id>
			<updated>2012-05-03T03:44:26+00:00</updated>
		</source>
	</entry>

</feed>

