{"id":5827,"date":"2018-08-31T23:26:38","date_gmt":"2018-09-01T04:26:38","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/ccpg1001\/?p=5827"},"modified":"2026-08-14T07:55:05","modified_gmt":"2026-08-14T12:55:05","slug":"2eva2018ti_t3-prueba-de-escritorio","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/algoritmos101\/fp-2eva20\/2eva2018ti_t3-prueba-de-escritorio\/","title":{"rendered":"2Eva2018TI_T3 Prueba de Escritorio - cadenas, indexaci\u00f3n, diccionarios"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">2da Evaluaci\u00f3n I T\u00e9rmino 2018-2019. 31-Agosto-2018 \/CCPG001<\/h2>\n\n\n\n<p><strong>Tema 3<\/strong>. (10 puntos) Indique la salida por pantalla del siguiente c\u00f3digo. Justifique su respuesta.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np\n\nletters = np.array(&#x5B;'A', 'Z', 'P', 'B',\n                    'E', 'R', 'O', 'M',\n                    'B', 'A', 'C', 'D',\n                    'Q', 'O'])\nindexes = np.array(&#x5B;54, 23, 60, 13, 29,\n                    65, 31, 23, 30, 99,\n                    19, 89, 10, 56])\nn1 = letters&#x5B;indexes&gt;=30]\n\nres= {}\nfor x in n1:\n    res&#x5B;x] = res.get(x,0)+1\n\nprint(res)\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>2da Evaluaci\u00f3n I T\u00e9rmino 2018-2019. 31-Agosto-2018 \/CCPG001 Tema 3. (10 puntos) Indique la salida por pantalla del siguiente c\u00f3digo. Justifique su respuesta.<\/p>\n","protected":false},"author":8043,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"wp-custom-template-entrada-fp-ejercicios","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[161],"class_list":["post-5827","post","type-post","status-publish","format-standard","hentry","category-fp-2eva20","tag-pruebaescritorio"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/5827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/users\/8043"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/comments?post=5827"}],"version-history":[{"count":4,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/5827\/revisions"}],"predecessor-version":[{"id":25417,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/5827\/revisions\/25417"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/media?parent=5827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/categories?post=5827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/tags?post=5827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}