{"id":150,"date":"2014-02-25T23:38:45","date_gmt":"2014-02-25T23:41:00","guid":{"rendered":"https:\/\/0b572python.jpg"},"modified":"2015-07-16T20:44:39","modified_gmt":"2015-07-17T02:44:39","slug":"algoritmo-que-imprime-el-minimo-el-maximo-y-la-media-de-tres-numeros-en-python","status":"publish","type":"post","link":"https:\/\/emanuelpaxtian.com\/blog\/algoritmo-que-imprime-el-minimo-el-maximo-y-la-media-de-tres-numeros-en-python\/","title":{"rendered":"Algoritmo que imprime el m\u00ednimo, el m\u00e1ximo y la media de tres n\u00fameros en python"},"content":{"rendered":"<p>Algoritmo que imprime el m\u00ednimo, el m\u00e1ximo y la media de tres n\u00fameros en python<\/p>\n<p>Sin mas aqui esta el codigo.<\/p>\n<pre class=\"brush: python\"># Obtenemos n\u00fameros.\r\nnumeros = []\r\nfor i in ['primer', 'segundo','tercer']:\r\n    texto = u'Introduce el %s n\u00famero: ' % (i)\r\n    numeros.append(float(raw_input(texto)))\r\n\r\n# Ordenamos.\r\nnumeros.sort()\r\n\r\n# Obtenemos m\u00e1ximo y m\u00ednimo.\r\nminimo = numeros[0]\r\nmaximo = numeros[2]\r\n\r\n# Obtenemos la media aritm\u00e9tica.\r\nmedia = round((numeros[0] + numeros[1] + numeros[2]) \/ float(3),3)\r\n\r\n# Visualizamos resultados.\r\ncadena = u'M\u00ednimo: %d, M\u00e1ximo: %d, Media: %f' % (minimo, maximo, media)\r\nprint cadena\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Algoritmo que imprime el m\u00ednimo, el m\u00e1ximo y la media de tres n\u00fameros en python Sin mas aqui esta el codigo. # Obtenemos n\u00fameros. numeros = [] for i in&hellip;<\/p>\n","protected":false},"author":1,"featured_media":417,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":0,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/media\/417"}],"wp:attachment":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}