/Python-Principles

A collection of my solutions to Python Principle challenges. All solutions were validated through the website before commiting to this repo.

Primary LanguagePython

Python Principles Challenges

A collection of my solutions to https://pythonprinciples.com/challenges/. All solutions were validated through the website before commiting to this repo.

Difficulty 2/10

  1. Capital Indexes - for loop, strings, index, selection
  2. Middle Letter - strings, division, index
  3. Online Status - loop dictionaries
  4. Randomness - import modules, random
  5. Type Check - checking data types

Difficulty 3/10

  1. Double letters - comparison operators
  2. Add and remove dots - string join and replace
  3. Count syllables - string count
  4. Anagrams - sorted() function
  5. Flatten a list - nested loop
  6. Min-maxing - min() and max()
  7. Divisable by 3 - remainder operator

Difficulty 4/10

  1. Tic tac toe input - dictionary, tuples
  2. Palindrome - reverse loop
  3. Up and down - tuples (this was more like a 2/10 difficulty to me)
  4. Consecutive Zeros - string split and len
  5. All equal - nested loop
  6. Boolean and - boolean type (more like 3/10 difficulty to me)

Difficulty 5/10

  1. Writing short code - list comprehension
  2. Custom zip - implement own version of zip()
  3. Solution validation - if conditions, check substrings
  4. List xor - list count()
  5. Counting parameters - using google to find the solution

Difficulty 7/10

  1. Thousands separator - for loop, string join