<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mako_shark</author_name>
  <author_url>https://blog.hatena.ne.jp/mako_shark/</author_url>
  <blog_title>python; checkio日記</blog_title>
  <blog_url>https://mako-shark.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>３で割り切れたらFizz、5で割り切れたらBuzz、15で割り切れたらFizz Buzzを、それ以外ではそのままの番号を(文字列で）返す問題 def checkio(x): ans = (x%3 == 0)*'Fizz' + (x%15 ==0)*' ' + (x%5 ==0)*'Buzz' if ans =='': return str(x) else: return ans としていたが、他の人の答えをみて勉強。 空の文字列はFalse、そうでない文字列はTrueのようにif文の中で扱うことが出来るらしい。ということで、 def checkio(x): ans = (x%3 == 0)*'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmako-shark.hatenadiary.jp%2Fentry%2F2018%2F02%2F03%2F121540&quot; title=&quot;Elementary 問題 Fizz Buzz - python; checkio日記&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>2018-02-03 12:15:40</published>
  <title>Elementary 問題 Fizz Buzz</title>
  <type>rich</type>
  <url>https://mako-shark.hatenadiary.jp/entry/2018/02/03/121540</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
