From 37bb38e87492aec8b704b537685ce7de881f11d5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 22 Aug 2017 08:49:09 +0200 Subject: [PATCH 1/2] added .idea/ to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 013c3a0802..98971d3a00 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ tmp bin/configlet bin/configlet.exe +.idea/ From 54539b7228f9e549106bc0de9d486f39a3dc7ad4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 22 Aug 2017 08:50:51 +0200 Subject: [PATCH 2/2] adding parameters and methods to templates accumulate - bracket-push --- exercises/accumulate/accumulate.py | 2 +- exercises/allergies/allergies.py | 10 +++++++++- exercises/alphametics/alphametics.py | 2 +- exercises/anagram/anagram.py | 2 +- exercises/atbash-cipher/atbash_cipher.py | 4 ++-- exercises/beer-song/beer_song.py | 4 ++-- exercises/binary-search/binary_search.py | 2 +- exercises/binary/binary.py | 2 +- exercises/bob/bob.py | 2 +- exercises/book-store/book_store.py | 2 +- exercises/bracket-push/bracket_push.py | 2 +- 11 files changed, 21 insertions(+), 13 deletions(-) diff --git a/exercises/accumulate/accumulate.py b/exercises/accumulate/accumulate.py index 741fb58b99..d67a51b055 100644 --- a/exercises/accumulate/accumulate.py +++ b/exercises/accumulate/accumulate.py @@ -1,2 +1,2 @@ -def accumulate(): +def accumulate(array, function): pass diff --git a/exercises/allergies/allergies.py b/exercises/allergies/allergies.py index 9c8934edcd..6caab68bbe 100644 --- a/exercises/allergies/allergies.py +++ b/exercises/allergies/allergies.py @@ -1,3 +1,11 @@ class Allergies(object): - def __init__(self): + + def __init__(self, number): + pass + + def is_allergic_to(self, string): + pass + + @property + def lst(self): pass diff --git a/exercises/alphametics/alphametics.py b/exercises/alphametics/alphametics.py index 0415ad7afe..035cc1e599 100644 --- a/exercises/alphametics/alphametics.py +++ b/exercises/alphametics/alphametics.py @@ -1,2 +1,2 @@ -def solve(): +def solve(string): pass diff --git a/exercises/anagram/anagram.py b/exercises/anagram/anagram.py index c23ccd710b..7b6b3aa0a2 100644 --- a/exercises/anagram/anagram.py +++ b/exercises/anagram/anagram.py @@ -1,2 +1,2 @@ -def detect_anagrams(): +def detect_anagrams(string, array): pass diff --git a/exercises/atbash-cipher/atbash_cipher.py b/exercises/atbash-cipher/atbash_cipher.py index 2536c2e670..1a673ebed8 100644 --- a/exercises/atbash-cipher/atbash_cipher.py +++ b/exercises/atbash-cipher/atbash_cipher.py @@ -1,6 +1,6 @@ -def encode(): +def encode(string): pass -def decode(): +def decode(string): pass diff --git a/exercises/beer-song/beer_song.py b/exercises/beer-song/beer_song.py index 549c5bb9c5..3be704214b 100644 --- a/exercises/beer-song/beer_song.py +++ b/exercises/beer-song/beer_song.py @@ -1,6 +1,6 @@ -def verse(): +def verse(number): pass -def song(): +def song(number1, number2=0): pass diff --git a/exercises/binary-search/binary_search.py b/exercises/binary-search/binary_search.py index 19e630d5f6..6ec933da3d 100644 --- a/exercises/binary-search/binary_search.py +++ b/exercises/binary-search/binary_search.py @@ -1,2 +1,2 @@ -def binary_search(): +def binary_search(array, number): pass diff --git a/exercises/binary/binary.py b/exercises/binary/binary.py index e1f4ca6cdf..49cee19015 100644 --- a/exercises/binary/binary.py +++ b/exercises/binary/binary.py @@ -1,2 +1,2 @@ -def parse_binary(): +def parse_binary(string): pass diff --git a/exercises/bob/bob.py b/exercises/bob/bob.py index 5221e0ec65..a2bdda64bb 100644 --- a/exercises/bob/bob.py +++ b/exercises/bob/bob.py @@ -1,2 +1,2 @@ -def hey(): +def hey(string): pass diff --git a/exercises/book-store/book_store.py b/exercises/book-store/book_store.py index a9feac686b..711be23f81 100644 --- a/exercises/book-store/book_store.py +++ b/exercises/book-store/book_store.py @@ -1,2 +1,2 @@ -def calculate_total(): +def calculate_total(array, number=None): pass diff --git a/exercises/bracket-push/bracket_push.py b/exercises/bracket-push/bracket_push.py index f5e2d19f6a..da11127dc2 100644 --- a/exercises/bracket-push/bracket_push.py +++ b/exercises/bracket-push/bracket_push.py @@ -1,2 +1,2 @@ -def check_brackets(): +def check_brackets(string): pass