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.