<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tedd707</author_name>
  <author_url>https://blog.hatena.ne.jp/tedd707/</author_url>
  <blog_title>ITエンジニアが仕事に対して思うこと</blog_title>
  <blog_url>https://pythonjp.ikitai.net/</blog_url>
  <categories>
  </categories>
  <description>**** Pythonにおいて、divmod()関数は2つの数値を受け取り、商と余りを同時に計算する組み込み関数です。この記事では、divmod()関数の基本的な使い方から具体的なコード例を交えて詳しく解説します。 divmod() 関数の基本構文 divmod()関数は以下のような基本的な構文を持っています。 divmod(x, y) x: 除算される数。 y: 除数。 この関数は (x // y, x % y) と同等の結果を返します。つまり、商と余りをタプルでまとめて返します。 divmod() の使用例 1. 整数同士の計算 # 整数同士の計算 result = divmod(15, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpythonjp.ikitai.net%2Fentry%2F2024%2F01%2F27%2F135745&quot; title=&quot;Python: `divmod()` - 商と余りの一括計算 - ITエンジニアが仕事に対して思うこと&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>2024-01-27 13:57:45</published>
  <title>Python: `divmod()` - 商と余りの一括計算</title>
  <type>rich</type>
  <url>https://pythonjp.ikitai.net/entry/2024/01/27/135745</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
