Get an account on codewars.com and start training. Practice makes a master, for as they say:
In theory there is no difference between theory and practice. In practice, there is. – Yogi Berra
Getting your feet wet #
Can be started after class no. 5 (functions).
- 8: Convert a String to a Number!
- 8: Returning Strings
- 8: Jenny’s secret message
- 8: Even or Odd
- 8: Remove First and Last Character
- 8: String repeat
- 8: Sentence Smash
- 8: Are you playing Banjo
- 8: A Needle in the Haystack
- 8: Multiply
- 8: Stringy Strings
- 8: Is it a number
- 8: Grasshoper - Grade Book
- 8: Remove spaces
- 8: Abbreviate a Two Word Name
- 8: Is the string uppercase?
- 8: Formatting Decimal Places #0
- 8: Formatting Decimal Places #1
- 8: Dollars and Cents
Basics #
Requires all classes up to and including no. 6 (Structures).
- 8: Count the Monkeys!
- 8: Reverse List Order
- 8: Basic Math Operations
- 8: Rock Paper Scissors!
- 8: If you can’t sleep, just count sheep!!
- 7: Find Count of Most Frequent Item in an Array
- 8: Surface Area and Volume of a Box
- 8: Convert number to reversed array of digits
- 7: Form The Minimum
- 8: Sum of positive
- 8: Parse nice int from char problem
- 7: Return substring instance count
- 7: Number ladder
- 8: Total amount of points
- 7: Reversed String - don’t use
reversed
function - 7: Wovel count - if
- 7: Nth power rules them all
- 7: Disemwovel Trolls
- 7: Find the stray number - dict/if
- 7: Mumbling
- 7: Shortest Word
Intermediate #
- 7: Find Your Villain Name
- 7: Scrolling Text
- 7: Summing a number’s digits
- 7: My Language Skills
- 7: Find the Capitals
- 7: Aparently-Modifying strings
- 7: Add Length
- 7: Ones and Zeros
- 7: Number Pairs
- 7: Santa’s Naughty List
- 7: Sort array by string length
- 7: Sort by Last Char
- 7: Nth Smallest Element
- 7: Remove Anchor from URL
- 7: Max diff
- 7: Sort Deck of Cards
- 7: Strong password?
- 7: Sorted Union
- 7: Operations with Sequence
- 5: First non-repeating character
- 6: Detect Pangram
- 7: Get Nth Even Number
- 7: Sorted? yes? no? how?
- 7: Sort Santa’s Reinder
- 7: Maximum Gap
- 6: Autocomplete! Yay!
Advanced #
- 6: Who likes it?
- 6: Duplicate Encoder
- 6: Create Phone Number
- 6: Sum of Digits / Digital Root
- 6: Multiples of 3 or 5
- 6: Inside Out Strings
- 6: Find the Parity Outlier
- 6: Find the odd int
- 6: Counting Duplicates
- 6: Valid Braces
- 6: Stop gninnipS My sdroW!
- 6: Roman Numerals Encoder
- 6: Bit Counting
- 5: Simple Pig Latin
- 6: Title Case
- 5: Car Escape
- 4: Strip Comments
- 4: Human readable duration format
- 6: Count Repeats
- 6: Longest Palindrome
- 7: Reversing the bits in an integer
Functional Programming #
- 8: Sum Arrays - use
functools.reduce
- 7: List Filtering - use
map
- 7: No oddities here - use
filter
- 7: Filter Long Words - use
filter
- 7: Jaden Casing Strings - use
map
- 6: Replace With Alphabet Position - use list comprehension
- 7: Curring functions: multiply all elements in array - use
lambda
OOP #
- 8: Color Ghost -
ghost.color()
is to be implemented - 7: Building Spheres
- 8: Name Your Python
- 8: Basic subclasses - Adam and Eve