From 9b66c64e59c91b019ee22c2820351353feba9a6f Mon Sep 17 00:00:00 2001 From: s407545 Date: Sun, 13 May 2018 12:51:32 +0200 Subject: [PATCH] =?UTF-8?q?rozwi=C4=85zanie=20zad.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labs02/task06.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/labs02/task06.py b/labs02/task06.py index ff4a9d3..c08e2a7 100644 --- a/labs02/task06.py +++ b/labs02/task06.py @@ -10,7 +10,15 @@ ma być zwracany napis "It's not a Big 'No!'". """ def big_no(n): - pass + if n<5: + zwraca= "It's not a Big 'No!'" + return zwraca + else: + zwraca='' + for i in range(n): + zwraca=zwraca + 'O' + + return ("N"+ zwraca+ "!") def tests(f): inputs = [[5], [6], [2]]