Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
*.pyc


# C extensions
*.so
Expand All @@ -24,6 +24,9 @@ var/
*.egg-info/
.installed.cfg
*.egg
last_files
__pycache__
*.pyc

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,14 @@ def multiples(s1, s2, s3):
return [a for a in xrange(1, s3) if not(a % s1 or a % s2)]
```


Sum of the first nth terms of a series (7 kyu)
- Module: series_sum.py
- Tests: test_series_sum.py
- Link: http://www.codewars.com/kata/sum-of-the-first-nth-term-of-series/train/python
- Interesting Solution: Making the numerator a float() was smart.
```python
def series_sum(n):
"""Solution by MMMAAANNN"""
return '{:.2f}'.format(sum(1.0/(3 * i + 1) for i in range(n)))
```
1 change: 0 additions & 1 deletion last_files/364dba19a3

This file was deleted.

280 changes: 0 additions & 280 deletions last_files/ably.min(1).js

This file was deleted.

280 changes: 0 additions & 280 deletions last_files/ably.min.js

This file was deleted.

45 changes: 0 additions & 45 deletions last_files/analytics.js

This file was deleted.

1 change: 0 additions & 1 deletion last_files/app.js

This file was deleted.

Loading