Pythonで指定した値で切り上げを行う方法

今回はPythonで指定した値で切り上げを行う方法をまとめていこうと思います。
細かい証明は他の記事に任せます。
Pythonで指定した値で切り上げを行う方法サンプルでは5の倍数で切り上げ/切り捨てを行います。 ...
Pythonで1秒ごとに素数を出力し続けるプログラム

今回はPythonを使って1秒ごとに素数を出力し続けるプログラムをご紹介していきたいと思います。
Pythonで1秒ごとに素数を出力し続けるプログラム先にプログラムをご紹介いたします。
前半部分は素数を計算して ...
Pythonで無限に素数を出力し続けるプログラム【単純なプログラム】

今回はPythonを使って無限に素数を出力し続ける単純なプログラムをご紹介いたします。
Pythonで無限に素数を出力し続けるプログラム【単純なプログラム】先にプログラムをご紹介いたします。
プログラムの説明に ...
週休2日、週休3日で1ヶ月(4週間)の間に連休がある確率【メモ】

今回は週休2日、週休3日で1ヶ月(4週間)の間に連休がある確率をPythonコードで求めてみた結果についてご紹介いたします。
備忘録の意味合いが強いので、参考になる方は限られているかもしれません。
週休2日、週休3日 ...