{"id":35,"date":"2025-12-22T18:59:58","date_gmt":"2025-12-22T15:59:58","guid":{"rendered":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/?p=35"},"modified":"2025-12-22T18:59:58","modified_gmt":"2025-12-22T15:59:58","slug":"%ce%bb%ce%af%cf%83%cf%84%ce%b5%cf%82-%cf%83%cf%84%ce%b7%ce%bd-python-%ce%b1%cf%80%ce%bf%ce%b8%ce%ae%ce%ba%ce%b5%cf%85%cf%83%ce%b7-%cf%80%ce%bf%ce%bb%ce%bb%ce%b1%cf%80%ce%bb%cf%8e%ce%bd-%cf%84%ce%b9","status":"publish","type":"post","link":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/2025\/12\/22\/%ce%bb%ce%af%cf%83%cf%84%ce%b5%cf%82-%cf%83%cf%84%ce%b7%ce%bd-python-%ce%b1%cf%80%ce%bf%ce%b8%ce%ae%ce%ba%ce%b5%cf%85%cf%83%ce%b7-%cf%80%ce%bf%ce%bb%ce%bb%ce%b1%cf%80%ce%bb%cf%8e%ce%bd-%cf%84%ce%b9\/","title":{"rendered":"\u039b\u03af\u03c3\u03c4\u03b5\u03c2 \u03c3\u03c4\u03b7\u03bd Python: \u0391\u03c0\u03bf\u03b8\u03ae\u03ba\u03b5\u03c5\u03c3\u03b7 \u03a0\u03bf\u03bb\u03bb\u03b1\u03c0\u03bb\u03ce\u03bd \u03a4\u03b9\u03bc\u03ce\u03bd"},"content":{"rendered":"<p>\u039f\u03b9 \u03bb\u03af\u03c3\u03c4\u03b5\u03c2 \u03bc\u03b1\u03c2 \u03b5\u03c0\u03b9\u03c4\u03c1\u03ad\u03c0\u03bf\u03c5\u03bd \u03bd\u03b1 \u03b1\u03c0\u03bf\u03b8\u03b7\u03ba\u03b5\u03cd\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03c4\u03b9\u03bc\u03ad\u03c2 \u03c3\u03b5 \u03bc\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03b2\u03bb\u03b7\u03c4\u03ae. \u0395\u03af\u03bd\u03b1\u03b9 \u03c3\u03b1\u03bd \u03ad\u03bd\u03b1 \u03c1\u03ac\u03c6\u03b9 \u03bc\u03b5 \u03c0\u03bf\u03bb\u03bb\u03ac \u03ba\u03bf\u03c5\u03c4\u03b9\u03ac, \u03c4\u03bf \u03ba\u03b1\u03b8\u03ad\u03bd\u03b1 \u03bc\u03b5 \u03c4\u03b7\u03bd \u03b4\u03b9\u03ba\u03ae \u03c4\u03bf\u03c5 \u03b8\u03ad\u03c3\u03b7.<\/p>\n<p>**\u0394\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u039b\u03af\u03c3\u03c4\u03b1\u03c2:**<\/p>\n<p>mathites = [\"\u039c\u03b1\u03c1\u03af\u03b1\", \"\u0393\u03b9\u03ce\u03c1\u03b3\u03bf\u03c2\", \"\u0395\u03bb\u03ad\u03bd\u03b7\", \"\u039d\u03af\u03ba\u03bf\u03c2\"]<br \/>\narithmoi = [5, 10, 15, 20, 25]<br \/>\nmikta = [1, \"Python\", 3.14, True]<\/p>\n<p>**\u03a0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7 \u03c3\u03b5 \u03a3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1:**<\/p>\n<p>\u03a7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bc\u03b5 \u03b1\u03c1\u03b9\u03b8\u03bc\u03bf\u03cd\u03c2 \u03b8\u03ad\u03c3\u03b7\u03c2 (indexes) \u03c0\u03bf\u03c5 \u03be\u03b5\u03ba\u03b9\u03bd\u03bf\u03cd\u03bd \u03b1\u03c0\u03cc \u03c4\u03bf 0:<\/p>\n<p>print(mathites[0]) # \u0395\u03bc\u03c6\u03b1\u03bd\u03af\u03b6\u03b5\u03b9: \u039c\u03b1\u03c1\u03af\u03b1<br \/>\nprint(mathites[2]) # \u0395\u03bc\u03c6\u03b1\u03bd\u03af\u03b6\u03b5\u03b9: \u0395\u03bb\u03ad\u03bd\u03b7<\/p>\n<p>**\u03a7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b5\u03c2 \u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b5\u03c2:**<\/p>\n<p># \u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf\u03c5<br \/>\nmathites.append(\"\u0386\u03bd\u03bd\u03b1\")<\/p>\n<p># \u0391\u03c6\u03b1\u03af\u03c1\u03b5\u03c3\u03b7 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03bf\u03c5<br \/>\nmathites.remove(\"\u0393\u03b9\u03ce\u03c1\u03b3\u03bf\u03c2\")<\/p>\n<p># \u039c\u03ae\u03ba\u03bf\u03c2 \u03bb\u03af\u03c3\u03c4\u03b1\u03c2<br \/>\nprint(len(mathites))<\/p>\n<p># \u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7<br \/>\narithmoi.sort()<\/p>\n<p>**\u0394\u03b9\u03ac\u03c3\u03c7\u03b9\u03c3\u03b7 \u039b\u03af\u03c3\u03c4\u03b1\u03c2:**<\/p>\n<p>\u039c\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03c0\u03b9\u03c3\u03ba\u03b5\u03c6\u03b8\u03bf\u03cd\u03bc\u03b5 \u03cc\u03bb\u03b1 \u03c4\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 \u03bc\u03b5 \u03ad\u03bd\u03b1\u03bd \u03b2\u03c1\u03cc\u03c7\u03bf:<\/p>\n<p>for mathitis in mathites:<br \/>\nprint(mathitis)<\/p>\n<p>**Slicing (\u03a4\u03b5\u03bc\u03b1\u03c7\u03b9\u03c3\u03bc\u03cc\u03c2):**<\/p>\n<p>\u039c\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03c0\u03ac\u03c1\u03bf\u03c5\u03bc\u03b5 \u03ad\u03bd\u03b1 \u03ba\u03bf\u03bc\u03bc\u03ac\u03c4\u03b9 \u03c4\u03b7\u03c2 \u03bb\u03af\u03c3\u03c4\u03b1\u03c2:<\/p>\n<p>prota_3 = mathites[0:3]<br \/>\nteleftaia_2 = mathites[-2:]<\/p>\n<p>\u039f\u03b9 \u03bb\u03af\u03c3\u03c4\u03b5\u03c2 \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03c0\u03cc \u03c4\u03b9\u03c2 \u03c0\u03b9\u03bf \u03c7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b5\u03c2 \u03b4\u03bf\u03bc\u03ad\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c3\u03c4\u03b7\u03bd Python \u03ba\u03b1\u03b9 \u03b8\u03b1 \u03c4\u03b9\u03c2 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c2 \u03c3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u039f\u03b9 \u03bb\u03af\u03c3\u03c4\u03b5\u03c2 \u03bc\u03b1\u03c2 \u03b5\u03c0\u03b9\u03c4\u03c1\u03ad\u03c0\u03bf\u03c5\u03bd \u03bd\u03b1 \u03b1\u03c0\u03bf\u03b8\u03b7\u03ba\u03b5\u03cd\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03c4\u03b9\u03bc\u03ad\u03c2 \u03c3\u03b5 \u03bc\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03b2\u03bb\u03b7\u03c4\u03ae. \u0395\u03af\u03bd\u03b1\u03b9 \u03c3\u03b1\u03bd \u03ad\u03bd\u03b1 \u03c1\u03ac\u03c6\u03b9 \u03bc\u03b5 \u03c0\u03bf\u03bb\u03bb\u03ac \u03ba\u03bf\u03c5\u03c4\u03b9\u03ac, \u03c4\u03bf \u03ba\u03b1\u03b8\u03ad\u03bd\u03b1 \u03bc\u03b5 \u03c4\u03b7\u03bd \u03b4\u03b9\u03ba\u03ae \u03c4\u03bf\u03c5 \u03b8\u03ad\u03c3\u03b7. **\u0394\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u039b\u03af\u03c3\u03c4\u03b1\u03c2:** mathites = [&#8220;\u039c\u03b1\u03c1\u03af\u03b1&#8221;, &#8220;\u0393\u03b9\u03ce\u03c1\u03b3\u03bf\u03c2&#8221;, &#8220;\u0395\u03bb\u03ad\u03bd\u03b7&#8221;, &#8220;\u039d\u03af\u03ba\u03bf\u03c2&#8221;] arithmoi = [5, 10, 15, &hellip; <\/p>\n<div class=\"more-link-wrapper\"><a href=\"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/2025\/12\/22\/%ce%bb%ce%af%cf%83%cf%84%ce%b5%cf%82-%cf%83%cf%84%ce%b7%ce%bd-python-%ce%b1%cf%80%ce%bf%ce%b8%ce%ae%ce%ba%ce%b5%cf%85%cf%83%ce%b7-%cf%80%ce%bf%ce%bb%ce%bb%ce%b1%cf%80%ce%bb%cf%8e%ce%bd-%cf%84%ce%b9\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u039b\u03af\u03c3\u03c4\u03b5\u03c2 \u03c3\u03c4\u03b7\u03bd Python: \u0391\u03c0\u03bf\u03b8\u03ae\u03ba\u03b5\u03c5\u03c3\u03b7 \u03a0\u03bf\u03bb\u03bb\u03b1\u03c0\u03bb\u03ce\u03bd \u03a4\u03b9\u03bc\u03ce\u03bd&#8221;<\/span><\/a><\/div>\n","protected":false},"author":65120,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-listes-lexika"],"_links":{"self":[{"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/users\/65120"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}