学習パス

Python 練習問題

数値・文字列・リストを扱う定番の初心者向け演習。各演習のあとに自分で解くチャレンジがあります。

レッスン 15 件 · チャレンジ 26 件

パスを始める →

1 数値と桁 レッスン 6 件

  1. レッスン チャレンジ 2 件 Sum the Digits of a Number Add every decimal digit in an integer.
  2. レッスン チャレンジ 2 件 Reverse an Integer in Python Reverse the decimal digits of an integer.
  3. レッスン チャレンジ 2 件 Check an Armstrong Number Check whether a number equals the sum of its powered digits.
  4. レッスン チャレンジ 1 件 Check a Perfect Number Check whether proper divisors add up to the number.
  5. レッスン チャレンジ 2 件 Check a Leap Year in Python Apply Gregorian leap-year rules.
  6. レッスン チャレンジ 3 件 Pythonで素数判定 整数が素数か効率よく判定します。

2 文字列の問題 レッスン 5 件

  1. レッスン チャレンジ 2 件 Pythonで文字列を反転 スライスを使って文字順を逆にします。
  2. レッスン チャレンジ 2 件 Count Vowels in Python Count vowels in a line of text.
  3. レッスン チャレンジ 2 件 Check Anagrams in Python Check whether two texts contain the same letters.
  4. レッスン チャレンジ 1 件 Check Password Strength Validate several basic password requirements.
  5. レッスン チャレンジ 1 件 Caesar Cipher in Python Shift lowercase letters by a fixed amount.

3 リストの問題 レッスン 4 件

  1. レッスン チャレンジ 2 件 Find the Second Largest Value Find the second distinct largest list value.
  2. レッスン チャレンジ 1 件 Remove Duplicate List Values Remove duplicates while preserving their first-seen order.
  3. レッスン チャレンジ 2 件 Flatten a Nested List Flatten a one-level nested list.
  4. レッスン チャレンジ 1 件 Split a List into Chunks Divide a list into fixed-size groups.