{"id":15278,"date":"2023-12-22T19:55:37","date_gmt":"2023-12-22T10:55:37","guid":{"rendered":"http:\/\/www.tyosuke20xx.com\/blog\/?p=15278"},"modified":"2023-12-22T19:55:39","modified_gmt":"2023-12-22T10:55:39","slug":"python-%e3%83%aa%e3%82%b9%e3%83%88%e5%86%85%e8%a1%a8%e8%a8%98%e3%81%a8if%e3%82%92%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.tyosuke20xx.com\/blog\/?p=15278","title":{"rendered":"python \u30ea\u30b9\u30c8\u5185\u8868\u8a18\u3068if\u3092\u7d44\u307f\u5408\u308f\u305b\u308b"},"content":{"rendered":"\n<p>prices = [100, 200, 150, 200, 100]<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">prices_with_tax = []<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">for price in prices:<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">if price != 200:<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">prices_with_tax.append(price * 1.1)<\/h1>\n\n\n\n<p>prices_with_tax = [price * 1.1 for price in prices if price != 200]<\/p>\n\n\n\n<p>print(prices_with_tax)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>prices = [100, 200, 150, 200, 100] prices_with_tax = [] for price in prices: if price != 200: prices_with_tax. &hellip; <a href=\"http:\/\/www.tyosuke20xx.com\/blog\/?p=15278\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;python \u30ea\u30b9\u30c8\u5185\u8868\u8a18\u3068if\u3092\u7d44\u307f\u5408\u308f\u305b\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4,65],"tags":[3,39],"class_list":["post-15278","post","type-post","status-publish","format-standard","hentry","category-programming","category-python","tag-programming","tag-python"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15278"}],"version-history":[{"count":1,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15278\/revisions"}],"predecessor-version":[{"id":15279,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15278\/revisions\/15279"}],"wp:attachment":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15278"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}