A collection of my solutions to https://pythonprinciples.com/challenges/. All solutions were validated through the website before commiting to this repo.
- Capital Indexes - for loop, strings, index, selection
- Middle Letter - strings, division, index
- Online Status - loop dictionaries
- Randomness - import modules, random
- Type Check - checking data types
- Double letters - comparison operators
- Add and remove dots - string join and replace
- Count syllables - string count
- Anagrams - sorted() function
- Flatten a list - nested loop
- Min-maxing - min() and max()
- Divisable by 3 - remainder operator
- Tic tac toe input - dictionary, tuples
- Palindrome - reverse loop
- Up and down - tuples (this was more like a 2/10 difficulty to me)
- Consecutive Zeros - string split and len
- All equal - nested loop
- Boolean and - boolean type (more like 3/10 difficulty to me)
- Writing short code - list comprehension
- Custom zip - implement own version of zip()
- Solution validation - if conditions, check substrings
- List xor - list count()
- Counting parameters - using google to find the solution
- Thousands separator - for loop, string join