<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dogwood008</author_name>
  <author_url>https://blog.hatena.ne.jp/dogwood008/</author_url>
  <blog_title>dogwood008の開発メモ！</blog_title>
  <blog_url>https://blog.dogwood008.com/</blog_url>
  <categories>
  </categories>
  <description>概要 # Python variable = 'Trueの時の値' if condition else 'Falseの時の値' 詳細 RubyやJavaScriptだとこんな感じ。 # Ruby or JavaScript variable = condition ? 'Trueの時の値' : 'Falseの時の値' ちなみに、三項演算子は英語で Ternary operator という。 参考 docs.python.org book.pythontips.com</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.dogwood008.com%2Fentry%2Fternary-operator&quot; title=&quot;【Python】Pythonの三項演算子は独特 - dogwood008の開発メモ！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-14 23:24:52</published>
  <title>【Python】Pythonの三項演算子は独特</title>
  <type>rich</type>
  <url>https://blog.dogwood008.com/entry/ternary-operator</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
