Python 練習問題
数値・文字列・リストを扱う定番の初心者向け演習。各演習のあとに自分で解くチャレンジがあります。
パスを始める →1 数値と桁 レッスン 6 件
- レッスン チャレンジ 2 件 Sum the Digits of a Number Add every decimal digit in an integer.
- レッスン チャレンジ 2 件 Reverse an Integer in Python Reverse the decimal digits of an integer.
- レッスン チャレンジ 2 件 Check an Armstrong Number Check whether a number equals the sum of its powered digits.
- レッスン チャレンジ 1 件 Check a Perfect Number Check whether proper divisors add up to the number.
- レッスン チャレンジ 2 件 Check a Leap Year in Python Apply Gregorian leap-year rules.
- レッスン チャレンジ 3 件 Pythonで素数判定 整数が素数か効率よく判定します。
2 文字列の問題 レッスン 5 件
- レッスン チャレンジ 2 件 Pythonで文字列を反転 スライスを使って文字順を逆にします。
- レッスン チャレンジ 2 件 Count Vowels in Python Count vowels in a line of text.
- レッスン チャレンジ 2 件 Check Anagrams in Python Check whether two texts contain the same letters.
- レッスン チャレンジ 1 件 Check Password Strength Validate several basic password requirements.
- レッスン チャレンジ 1 件 Caesar Cipher in Python Shift lowercase letters by a fixed amount.
3 リストの問題 レッスン 4 件
- レッスン チャレンジ 2 件 Find the Second Largest Value Find the second distinct largest list value.
- レッスン チャレンジ 1 件 Remove Duplicate List Values Remove duplicates while preserving their first-seen order.
- レッスン チャレンジ 2 件 Flatten a Nested List Flatten a one-level nested list.
- レッスン チャレンジ 1 件 Split a List into Chunks Divide a list into fixed-size groups.