Skip to content

Commit

Permalink
[Python] Challenge 1 (Unreviewed) (YearOfProgramming#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Mielczarek authored and MJUIUC committed Jan 25, 2017
1 parent db0e5f3 commit 6b923f6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions challenge_1/python/sysek/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Challenge 1
###### Python 3.6
### 1. Approch to solving the problem
Print reverse word, for example
hello = olleh

### 2. How to run this code?
```
$ python3 reverse.py
Gimmie some word
hello world
dlrow olleh
```
### 3. How this program works?
Print reversed word
6 changes: 6 additions & 0 deletions challenge_1/python/sysek/src/reverse.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def reverse(string):
return string[::-1]

print('Gimmie some word')
s = input()
print(reverse(s))

0 comments on commit 6b923f6

Please sign in to comment.