forked from greenfox-velox/velox-syllabus
-
Notifications
You must be signed in to change notification settings - Fork 5
Week 03
Tibor Szász edited this page Nov 3, 2016
·
7 revisions
Create simple programs that run in the terminal
- Day 1: Expressions and control flow
- Day 2: Functions and data structures – Algorithm notation
- Day 3: OO Class
- Types
- Expressions
- Variables
- Mutations
- Conditionals
- Loops
- Classes
- Objects
- Lists
- Iteration
- Casting
- understanding Reference types
Palindome Kata The Kata has two part, the first one is mandatory for everybody, the second is just for students, who already know programming.
Create a function that takes a string and creates a palindrome from it. It should work like this:
output = create_palindrome('pear')
print(output) # it prints: pearraep
Create a function that searches for all the palindromes in a string that are at least than 3 characters, and returns a list with the found palindromes. Example:
output = search_palindromes('dog goat dad duck doodle never')
print(output) # it prints: ['og go', ' dad ', 'd d', 'dood', 'eve']
Creating simple algorithms as searching palindromes in a string, to practice variables, conditionals, loops and the other basic elements of a programming languages in python