{"id":32,"date":"2025-12-22T18:57:39","date_gmt":"2025-12-22T15:57:39","guid":{"rendered":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/?p=32"},"modified":"2025-12-22T18:57:39","modified_gmt":"2025-12-22T15:57:39","slug":"%cf%83%cf%85%ce%bd%ce%b8%ce%ae%ce%ba%ce%b5%cf%82-if-else-%ce%bb%ce%ae%cf%88%ce%b7-%ce%b1%cf%80%ce%bf%cf%86%ce%ac%cf%83%ce%b5%cf%89%ce%bd-%cf%83%cf%84%ce%bf%ce%bd-%ce%ba%cf%8e%ce%b4%ce%b9%ce%ba%ce%b1","status":"publish","type":"post","link":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/2025\/12\/22\/%cf%83%cf%85%ce%bd%ce%b8%ce%ae%ce%ba%ce%b5%cf%82-if-else-%ce%bb%ce%ae%cf%88%ce%b7-%ce%b1%cf%80%ce%bf%cf%86%ce%ac%cf%83%ce%b5%cf%89%ce%bd-%cf%83%cf%84%ce%bf%ce%bd-%ce%ba%cf%8e%ce%b4%ce%b9%ce%ba%ce%b1\/","title":{"rendered":"\u03a3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 If-Else: \u039b\u03ae\u03c8\u03b7 \u0391\u03c0\u03bf\u03c6\u03ac\u03c3\u03b5\u03c9\u03bd \u03c3\u03c4\u03bf\u03bd \u039a\u03ce\u03b4\u03b9\u03ba\u03b1"},"content":{"rendered":"<p>\u039f\u03b9 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 \u03b5\u03c0\u03b9\u03c4\u03c1\u03ad\u03c0\u03bf\u03c5\u03bd \u03c3\u03c4\u03bf \u03c0\u03c1\u03cc\u03b3\u03c1\u03b1\u03bc\u03bc\u03ac \u03bc\u03b1\u03c2 \u03bd\u03b1 \u03c0\u03b1\u03af\u03c1\u03bd\u03b5\u03b9 \u03b1\u03c0\u03bf\u03c6\u03ac\u03c3\u03b5\u03b9\u03c2. \u0391\u03bd\u03ac\u03bb\u03bf\u03b3\u03b1 \u03bc\u03b5 \u03c4\u03bf \u03b1\u03bd \u03bc\u03b9\u03b1 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7 \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03bb\u03b7\u03b8\u03ae\u03c2 \u03ae \u03c8\u03b5\u03c5\u03b4\u03ae\u03c2, \u03b5\u03ba\u03c4\u03b5\u03bb\u03b5\u03af\u03c4\u03b1\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc\u03c2 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1\u03c2.<\/p>\n<p>**\u0392\u03b1\u03c3\u03b9\u03ba\u03ae \u0394\u03bf\u03bc\u03ae If:**<\/p>\n<p>ilikia = 16<\/p>\n<p>if ilikia &gt;= 18:<br \/>\nprint(\"\u0395\u03af\u03c3\u03b1\u03b9 \u03b5\u03bd\u03ae\u03bb\u03b9\u03ba\u03b1\u03c2\")<br \/>\nelse:<br \/>\nprint(\"\u0395\u03af\u03c3\u03b1\u03b9 \u03b1\u03bd\u03ae\u03bb\u03b9\u03ba\u03bf\u03c2\")<\/p>\n<p>**If-Elif-Else (\u03a0\u03bf\u03bb\u03bb\u03b1\u03c0\u03bb\u03ad\u03c2 \u0395\u03c0\u03b9\u03bb\u03bf\u03b3\u03ad\u03c2):**<\/p>\n<p>\u038c\u03c4\u03b1\u03bd \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b5\u03c2 \u03b1\u03c0\u03cc \u03b4\u03cd\u03bf \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ad\u03c2, \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bc\u03b5 \u03c4\u03bf elif:<\/p>\n<p>vathmologia = 85<\/p>\n<p>if vathmologia &gt;= 90:<br \/>\nprint(\"\u0386\u03c1\u03b9\u03c3\u03c4\u03b1!\")<br \/>\nelif vathmologia &gt;= 70:<br \/>\nprint(\"\u03a0\u03bf\u03bb\u03cd \u03ba\u03b1\u03bb\u03ac!\")<br \/>\nelif vathmologia &gt;= 50:<br \/>\nprint(\"\u039a\u03b1\u03bb\u03ac!\")<br \/>\nelse:<br \/>\nprint(\"\u03a0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03b4\u03b9\u03b1\u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03bf\")<\/p>\n<p>**\u03a4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2 \u03a3\u03cd\u03b3\u03ba\u03c1\u03b9\u03c3\u03b7\u03c2:**<\/p>\n<p>- == (\u03af\u03c3\u03bf)<br \/>\n- != (\u03b4\u03b9\u03ac\u03c6\u03bf\u03c1\u03bf)<br \/>\n- &gt; (\u03bc\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03bf)<br \/>\n- &lt; (\u03bc\u03b9\u03ba\u03c1\u03cc\u03c4\u03b5\u03c1\u03bf)<br \/>\n- &gt;= (\u03bc\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03bf \u03ae \u03af\u03c3\u03bf)<br \/>\n- &lt;= (\u03bc\u03b9\u03ba\u03c1\u03cc\u03c4\u03b5\u03c1\u03bf \u03ae \u03af\u03c3\u03bf)<\/p>\n<p>**\u039b\u03bf\u03b3\u03b9\u03ba\u03bf\u03af \u03a4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2:**<\/p>\n<p>\u039c\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03c3\u03c5\u03bd\u03b4\u03c5\u03ac\u03c3\u03bf\u03c5\u03bc\u03b5 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 \u03bc\u03b5 \u03c4\u03bf\u03c5\u03c2 \u03c4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2 and, or, not:<\/p>\n<p>ilikia = 16<br \/>\nexei_adeia = True<\/p>\n<p>if ilikia &gt;= 16 and exei_adeia:<br \/>\nprint(\"\u039c\u03c0\u03bf\u03c1\u03b5\u03af\u03c2 \u03bd\u03b1 \u03bf\u03b4\u03b7\u03b3\u03ae\u03c3\u03b5\u03b9\u03c2 \u03bc\u03bf\u03c4\u03bf\u03c3\u03b9\u03ba\u03bb\u03ad\u03c4\u03b1\")<\/p>\n<p>\u039f\u03b9 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03c0\u03b1\u03c1\u03b1\u03af\u03c4\u03b7\u03c4\u03b5\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5 \u03ad\u03be\u03c5\u03c0\u03bd\u03b1 \u03c0\u03c1\u03bf\u03b3\u03c1\u03ac\u03bc\u03bc\u03b1\u03c4\u03b1 \u03c0\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03b4\u03c1\u03bf\u03cd\u03bd \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03c3\u03b5 \u03ba\u03ac\u03b8\u03b5 \u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u039f\u03b9 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 \u03b5\u03c0\u03b9\u03c4\u03c1\u03ad\u03c0\u03bf\u03c5\u03bd \u03c3\u03c4\u03bf \u03c0\u03c1\u03cc\u03b3\u03c1\u03b1\u03bc\u03bc\u03ac \u03bc\u03b1\u03c2 \u03bd\u03b1 \u03c0\u03b1\u03af\u03c1\u03bd\u03b5\u03b9 \u03b1\u03c0\u03bf\u03c6\u03ac\u03c3\u03b5\u03b9\u03c2. \u0391\u03bd\u03ac\u03bb\u03bf\u03b3\u03b1 \u03bc\u03b5 \u03c4\u03bf \u03b1\u03bd \u03bc\u03b9\u03b1 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b7 \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03bb\u03b7\u03b8\u03ae\u03c2 \u03ae \u03c8\u03b5\u03c5\u03b4\u03ae\u03c2, \u03b5\u03ba\u03c4\u03b5\u03bb\u03b5\u03af\u03c4\u03b1\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc\u03c2 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1\u03c2. **\u0392\u03b1\u03c3\u03b9\u03ba\u03ae \u0394\u03bf\u03bc\u03ae If:** ilikia = 16 if ilikia &gt;= 18: print(&#8220;\u0395\u03af\u03c3\u03b1\u03b9 \u03b5\u03bd\u03ae\u03bb\u03b9\u03ba\u03b1\u03c2&#8221;) else: print(&#8220;\u0395\u03af\u03c3\u03b1\u03b9 \u03b1\u03bd\u03ae\u03bb\u03b9\u03ba\u03bf\u03c2&#8221;) **If-Elif-Else &hellip; <\/p>\n<div class=\"more-link-wrapper\"><a href=\"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/2025\/12\/22\/%cf%83%cf%85%ce%bd%ce%b8%ce%ae%ce%ba%ce%b5%cf%82-if-else-%ce%bb%ce%ae%cf%88%ce%b7-%ce%b1%cf%80%ce%bf%cf%86%ce%ac%cf%83%ce%b5%cf%89%ce%bd-%cf%83%cf%84%ce%bf%ce%bd-%ce%ba%cf%8e%ce%b4%ce%b9%ce%ba%ce%b1\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u03a3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 If-Else: \u039b\u03ae\u03c8\u03b7 \u0391\u03c0\u03bf\u03c6\u03ac\u03c3\u03b5\u03c9\u03bd \u03c3\u03c4\u03bf\u03bd \u039a\u03ce\u03b4\u03b9\u03ba\u03b1&#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":[5],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-synthikes-vroxoi"],"_links":{"self":[{"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/posts\/32","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=32"}],"version-history":[{"count":0,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.e-me-4all.eu\/Tsangaris\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}