Skip to content

mjhea0/python-devtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Developer Test

A simple test to show that a web developer knows how to use basic tools and understands the basics of the Python language.

Make sure your code is compatible with the latest versions of Python 2 and 3. Thanks!

Tests

Please fork this repository, clone it down, and then when you finish a test commit/push your code to Github and submit a pull request.

Write unit tests!

Part 1: Python Basics

String Reverse

  1. Create a function called reverse() that reverses a string.
  2. Add your solution to the "part1/reverse-string" folder in a new folder called "reverse_yourlastname".

Count Vowels

  1. Create a function called vowel_counter() that takes a string as an argument and returns the sum of each vowel found.
  2. Add your solution to the "part1/vowel-counter" folder in a new folder called "counter_yourlastname".

Part 2: Web Development with Flask

  1. Using Flask, create a simple website that has a single form entry field with a submit button.
  2. Submitting the form will result in the submitted text shown in reverse on the next page.
  3. Add your solution to the "part2" folder in a new folder called "reverse_flask_yourlastname".
  4. Commit/push your code up to Heroku
  5. Update the part2/README.md file in this repository with the publicly accessible URL
  6. Commit/push to Github and submit a pull request.

Todo

  1. Add additional tests to part 1
  2. Add Django Test
  3. Add Pyramid Test
  4. Add web2py Test
  5. Create web app