Skip to content

Commit eff66e7

Browse files
committed
updated instructions, added new folders, reviewed varma's part 1 solution
1 parent 246d30d commit eff66e7

File tree

6 files changed

+29
-22
lines changed

6 files changed

+29
-22
lines changed

‎README.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
## Python Developer Test
22

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

55
### Tests
66

77
Make sure to fork this repository and submit a pull request with the requested tasks completed.
88

9-
#### Python
9+
#### Part 1: Python Basics
1010

1111
1. Create a function called `reverse()` that reverses a string.
1212
1. Write unit tests to prove that the function works.
13-
1. Commit/push and submit a pull request
13+
1. Add your solution (both scripts) to the "part1" folder in a new folder called *reverse_yourlastname*.
14+
1. Commit/push to Github and submit a pull request.
1415

15-
### Django/Flask
16+
### Part 2: Web Development
1617

17-
1. Using either Django or Flask, create a simple website that has a single form entry field with a submit button.
18+
1. Using either Django or Flask (or Pyramid or web2py or web.py, etc.), create a simple website that has a single form entry field with a submit button.
1819
1. Submitting the form will result in the submitted text shown in reverse on the next page.
1920
1. Commit/push your code up to Heroku.
20-
1. Update the README.md file in this repository with a publicly accessible url.
21-
1. Commit/push and submit a pull request.
21+
1. Update the *part2/README.md* file in this repository with the publicly accessible URL.
22+
1. Commit/push to Github and submit a pull request.

‎part1/reverse_varma/reverse.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defreverse(str):
2+
returnstr[::-1]

‎part1/reverse_varma/test.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
fromreverseimportreverse
2+
3+
4+
deftest(string, rev):
5+
if(string==rev):
6+
returnTrue
7+
else:
8+
returnFalse
9+
10+
11+
''' Test cases '''
12+
print(test("tseet", reverse("teest")))
13+
print(test("olleh", reverse("hello")))
14+
print(test("eciuj elppa @1", reverse("1@ apple juice")))

‎part2/README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Links
2+
3+
1. Add link here
4+
1. Add link here
5+
1. Add link here

‎reverse/reverse.py‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎reverse/test.py‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
(0)