1
0
forked from tdwojak/Python2018

Zaktualizuj 'labs02/task06.py'

This commit is contained in:
Miłosz Maliszewski 2018-06-13 17:36:21 +00:00
parent 1afc8fd9fe
commit 8fb40219cf

View File

@ -10,7 +10,15 @@ ma być zwracany napis "It's not a Big 'No!'".
""" """
def big_no(n): def big_no(n):
pass if n<5:
zdanie="It's not a Big 'No!'"
else:
zdanie='N'
for i in range(n):
zdanie=zdanie + 'O'
zdanie = zdanie+'!'
return zdanie
def tests(f): def tests(f):
inputs = [[5], [6], [2]] inputs = [[5], [6], [2]]
@ -23,4 +31,4 @@ def tests(f):
return "TESTS PASSED" return "TESTS PASSED"
if __name__ == "__main__": if __name__ == "__main__":
print(tests(big_no)) print(tests(big_no))