{"id":6769,"date":"2018-09-15T06:48:45","date_gmt":"2018-09-15T11:48:45","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/ccpg1001\/?p=6769"},"modified":"2026-04-05T07:27:48","modified_gmt":"2026-04-05T12:27:48","slug":"3eva2018ti_t3-prueba-de-escritorio","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/algoritmos101\/fp-3eva20\/3eva2018ti_t3-prueba-de-escritorio\/","title":{"rendered":"3Eva2018TI_T3 Prueba de escritorio, listas, conjuntos"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">3ra Evaluaci\u00f3n I T\u00e9rmino 2018-2019. 14-Septiembre-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\n<pre class=\"wp-block-code\"><code>lista1 = &#091;<span style=\"color: #008000\">\"A\"<\/span>, <span style=\"color: #008000\">\"e\"<\/span>, <span style=\"color: #008000\">\"a\"<\/span>, <span style=\"color: #008000\">\"b\"<\/span>, <span style=\"color: #008000\">\"a\"<\/span>, <span style=\"color: #008000\">\"D\"<\/span>]\nlista2 = &#091;<span style=\"color: #008000\">\"E\"<\/span>, <span style=\"color: #008000\">\"b\"<\/span>, <span style=\"color: #008000\">\"a\"<\/span>, <span style=\"color: #008000\">\"m\"<\/span>, <span style=\"color: #008000\">\"d\"<\/span>]\n\nlista3 = &#091;]\n\n<span style=\"color: #d35400\">for<\/span> elemento <span style=\"color: #d35400\">in<\/span> lista1:\n    <span style=\"color: #d35400\">if<\/span> elemento <span style=\"color: #d35400\">not<\/span> <span style=\"color: #d35400\">in<\/span> lista2:\n        lista3.append(elemento)\n\n<span style=\"color: #ff00ff\">print<\/span>(<span style=\"color: #ff00ff\">set<\/span>(lista2).difference(lista3))\n<span style=\"color: #ff00ff\">print<\/span>(<span style=\"color: #ff00ff\">set<\/span>(lista3).union(lista1))\n<span style=\"color: #ff00ff\">print<\/span>(<span style=\"color: #ff00ff\">set<\/span>(lista2).symmetric_difference(lista1))<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>3ra Evaluaci\u00f3n I T\u00e9rmino 2018-2019. 14-Septiembre-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":[122],"tags":[161],"class_list":["post-6769","post","type-post","status-publish","format-standard","hentry","category-fp-3eva20","tag-pruebaescritorio"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/6769","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=6769"}],"version-history":[{"count":3,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/6769\/revisions"}],"predecessor-version":[{"id":17011,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/6769\/revisions\/17011"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/media?parent=6769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/categories?post=6769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/tags?post=6769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}