{"id":8904,"date":"2021-07-12T08:49:08","date_gmt":"2021-07-12T08:49:08","guid":{"rendered":"https:\/\/museo.inf.upv.es\/?page_id=8904"},"modified":"2021-07-15T11:11:28","modified_gmt":"2021-07-15T11:11:28","slug":"python","status":"publish","type":"page","link":"https:\/\/museo.inf.upv.es\/va\/python\/","title":{"rendered":"Python"},"content":{"rendered":"<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:75%\">\n<p><\/p>\n<h1>El Llenguatge de Programaci\u00f3 <strong>Python<\/strong><\/h1>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-9216 \" src=\"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg\" alt=\"guido van rossum\" width=\"341\" height=\"192\" srcset=\"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg 300w, https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-1024x576.jpg 1024w, https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-768x432.jpg 768w, https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault.jpg 1280w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/a>Presentat a final dels vuitanta per <strong>Guido van Rossum<\/strong> com a successor del llenguatge de programaci\u00f3 ABC. El nom del llenguatge prov\u00e9 de l\u2019afici\u00f3 del seu creador pels humoristes brit\u00e0nics <strong>Monty Python<\/strong>.<\/p>\n<p style=\"text-align: justify;\"><strong>Python<\/strong> \u00e9s un llenguatge de programaci\u00f3 interpretat amb filosofia que posa l\u2019accent en la llegibilitat del seu codi. Es tracta d\u2019un llenguatge multiparadigma, ja que suporta l\u2019orientaci\u00f3 a objectes, programaci\u00f3 imperativa i programaci\u00f3 funcional.<\/p>\n<p>\u00a0<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9228  alignright\" src=\"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/images-1.jpg\" alt=\"\" width=\"261\" height=\"352\" \/>Una caracter\u00edstica important de <strong>Python<\/strong> \u00e9s la resoluci\u00f3 din\u00e0mica de nom. Un altre objectiu del disseny del llenguatge \u00e9s la facilitat d\u2019extensi\u00f3. Tot i que la programaci\u00f3 en Python es podria considerar en algunes situacions hostil a la programaci\u00f3 funcional tradicional de <a href=\"https:\/\/museo.inf.upv.es\/lisp\/\">Lisp<\/a> , hi ha bastants analogies entre <strong>Python<\/strong> i els llenguatges minimalistes de la fam\u00edlia <a href=\"https:\/\/museo.inf.upv.es\/lisp\/\">Lisp<\/a> .<\/p>\n<p style=\"text-align: justify;\">Malgrat que la idea del codi clar i llegible no \u00e9s un tema nou i ja es perseguia en la d\u00e8cada dels setanta amb llenguatges com ara <a href=\"https:\/\/museo.inf.upv.es\/pascal\/\">Pascal<\/a> i <a href=\"https:\/\/museo.inf.upv.es\/cobol\/\">COBOL<\/a>, <strong>Python<\/strong> rescata aquesta idea i va ser dissenyat per a ser llegit amb facilitat, en qu\u00e8 utilitza paraules on altres llenguatges utilitzarien s\u00edmbols. El contingut dels blocs de codi (bucles, funcions, classes, etc.) es delimita mitjan\u00e7ant espais o tabuladors, coneguts com a indentaci\u00f3, abans de cada l\u00ednia d\u2019ordres pertanyents al bloc. Python es diferencia aix\u00ed d\u2019altres llenguatges de programaci\u00f3 que mantenen com a costum declarar els blocs mitjan\u00e7ant un conjunt de car\u00e0cters, normalment entre claus.<\/p>\n<p style=\"text-align: justify;\"><strong>Python<\/strong> t\u00e9 una gran biblioteca est\u00e0ndard, usada per a una diversitat de tasques. Els m\u00f2duls de la biblioteca est\u00e0ndard es poden millorar per m\u00f2duls personalitzats escrits tant en <a href=\"https:\/\/museo.inf.upv.es\/c-y-c\/\">C<\/a> com en <strong>Python<\/strong>. Atesa la gran varietat d\u2019eines incloses en la biblioteca est\u00e0ndard, combinada amb l\u2019habilitat d\u2019usar llenguatges de baix nivell, com ara <a href=\"https:\/\/museo.inf.upv.es\/c-y-c\/\">C<\/a> i <a href=\"https:\/\/museo.inf.upv.es\/c-y-c\/\">C++<\/a>, que s\u00f3n capa\u00e7os d\u2019interactuar amb altres biblioteques, Python \u00e9s un llenguatge que combina la seua sintaxi clara amb l\u2019immens poder de llenguatges menys elegants.<\/p>\n<p style=\"text-align: justify;\">En l\u2019actualitat (2021), Python s\u2019aplica en els camps d\u2019intel\u2022lig\u00e8ncia artificial i aprenentatge autom\u00e0tic (machine learning). Ocupa la 2a posici\u00f3 en el r\u00e0nquing <a href=\"https:\/\/www.tiobe.com\/tiobe-index\/\">TIOBE<\/a> de popularitat de llenguatges de programaci\u00f3 (a una difer\u00e8ncia de 0,7% amb l\u2019actual n\u00famero u, el llenguatge de programaci\u00f3 <a href=\"https:\/\/museo.inf.upv.es\/c-y-c\/\">C<\/a>). Cal destacar que durant els \u00faltims vint anys nom\u00e9s han aconseguit arribar a la primera posici\u00f3 els llenguatges <a href=\"https:\/\/museo.inf.upv.es\/c-y-c\/\">C<\/a> i <a href=\"https:\/\/museo.inf.upv.es\/java\/\">Java<\/a>.<\/p>\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\">\n<p><\/p>\n<div style=\"border-image: initial; border: 3px solid; border-color: #d1005d; padding: 10px;\">\n<h3 align=\"center\">Python<\/h3>\n<hr><strong>Naixement<\/strong>:1971 <br><strong>Evoluci\u00f3<\/strong>: Python 2 (2000); Python 3 (2008)<br><strong>Influ\u00e8ncies de<\/strong>: ABC; Pascal; C; Lisp; COBOL<br><strong>Influeix en<\/strong>: Go; JavaScript <\/div>\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>El Llenguatge de Programaci\u00f3 Python Presentat a final dels vuitanta per Guido van Rossum com a successor del llenguatge de programaci\u00f3 ABC. El nom del llenguatge prov\u00e9 de l\u2019afici\u00f3 del seu creador pels humoristes brit\u00e0nics Monty Python. Python \u00e9s un llenguatge de programaci\u00f3 interpretat amb filosofia que posa l\u2019accent en la llegibilitat del seu codi. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-8904","page","type-page","status-publish","hentry","post"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python - Web del Museo de Inform\u00e1tica 2.0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/museo.inf.upv.es\/python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python - Web del Museo de Inform\u00e1tica 2.0\" \/>\n<meta property=\"og:description\" content=\"El Llenguatge de Programaci\u00f3 Python Presentat a final dels vuitanta per Guido van Rossum com a successor del llenguatge de programaci\u00f3 ABC. El nom del llenguatge prov\u00e9 de l\u2019afici\u00f3 del seu creador pels humoristes brit\u00e0nics Monty Python. Python \u00e9s un llenguatge de programaci\u00f3 interpretat amb filosofia que posa l\u2019accent en la llegibilitat del seu codi. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/museo.inf.upv.es\/python\/\" \/>\n<meta property=\"og:site_name\" content=\"Web del Museo de Inform\u00e1tica 2.0\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-15T11:11:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/\",\"url\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/\",\"name\":\"Python - Web del Museo de Inform\u00e1tica 2.0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/museo.inf.upv.es\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/maxresdefault-300x169.jpg\",\"datePublished\":\"2021-07-12T08:49:08+00:00\",\"dateModified\":\"2021-07-15T11:11:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/#breadcrumb\"},\"inLanguage\":\"va-VA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"va-VA\",\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/museo.inf.upv.es\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/maxresdefault-300x169.jpg\",\"contentUrl\":\"https:\\\/\\\/museo.inf.upv.es\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/maxresdefault-300x169.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/museo.inf.upv.es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/museo.inf.upv.es\\\/#website\",\"url\":\"https:\\\/\\\/museo.inf.upv.es\\\/\",\"name\":\"Web del Museo de Inform\u00e1tica 2.0\",\"description\":\"Web del Museo de Inform\u00e1tica 2.0\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/museo.inf.upv.es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"va-VA\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python - Web del Museo de Inform\u00e1tica 2.0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/museo.inf.upv.es\/python\/","og_locale":"en_US","og_type":"article","og_title":"Python - Web del Museo de Inform\u00e1tica 2.0","og_description":"El Llenguatge de Programaci\u00f3 Python Presentat a final dels vuitanta per Guido van Rossum com a successor del llenguatge de programaci\u00f3 ABC. El nom del llenguatge prov\u00e9 de l\u2019afici\u00f3 del seu creador pels humoristes brit\u00e0nics Monty Python. Python \u00e9s un llenguatge de programaci\u00f3 interpretat amb filosofia que posa l\u2019accent en la llegibilitat del seu codi. [&hellip;]","og_url":"https:\/\/museo.inf.upv.es\/python\/","og_site_name":"Web del Museo de Inform\u00e1tica 2.0","article_modified_time":"2021-07-15T11:11:28+00:00","og_image":[{"url":"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/museo.inf.upv.es\/python\/","url":"https:\/\/museo.inf.upv.es\/python\/","name":"Python - Web del Museo de Inform\u00e1tica 2.0","isPartOf":{"@id":"https:\/\/museo.inf.upv.es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/museo.inf.upv.es\/python\/#primaryimage"},"image":{"@id":"https:\/\/museo.inf.upv.es\/python\/#primaryimage"},"thumbnailUrl":"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg","datePublished":"2021-07-12T08:49:08+00:00","dateModified":"2021-07-15T11:11:28+00:00","breadcrumb":{"@id":"https:\/\/museo.inf.upv.es\/python\/#breadcrumb"},"inLanguage":"va-VA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/museo.inf.upv.es\/python\/"]}]},{"@type":"ImageObject","inLanguage":"va-VA","@id":"https:\/\/museo.inf.upv.es\/python\/#primaryimage","url":"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg","contentUrl":"https:\/\/museo.inf.upv.es\/wp-content\/uploads\/2021\/07\/maxresdefault-300x169.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/museo.inf.upv.es\/python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/museo.inf.upv.es\/"},{"@type":"ListItem","position":2,"name":"Python"}]},{"@type":"WebSite","@id":"https:\/\/museo.inf.upv.es\/#website","url":"https:\/\/museo.inf.upv.es\/","name":"Web del Museo de Inform\u00e1tica 2.0","description":"Web del Museo de Inform\u00e1tica 2.0","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/museo.inf.upv.es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"va-VA"}]}},"_links":{"self":[{"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/pages\/8904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/comments?post=8904"}],"version-history":[{"count":20,"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/pages\/8904\/revisions"}],"predecessor-version":[{"id":9249,"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/pages\/8904\/revisions\/9249"}],"wp:attachment":[{"href":"https:\/\/museo.inf.upv.es\/va\/wp-json\/wp\/v2\/media?parent=8904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}