1
0
forked from tdwojak/Python2017

First commit

This commit is contained in:
s45157 2017-11-19 14:55:47 +01:00
parent d5755b6965
commit 9a92abc8c0
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ która zawiera tylko elementy z list o parzystych indeksach.
""" """
def even_elements(lista): def even_elements(lista):
pass return lista[::2]
def tests(f): def tests(f):

View File

@ -6,7 +6,10 @@
""" """
def days_in_year(days): def days_in_year(days):
pass if ((days % 4 == 0) and (days % 100 != 0)) or (days % 400 == 0):
return 366
else:
return 365
def tests(f): def tests(f):
inputs = [[2015], [2012], [1900], [2400], [1977]] inputs = [[2015], [2012], [1900], [2400], [1977]]

View File

@ -3,10 +3,7 @@
def suma(a, b): def suma(a, b):
""" return a + b
Napisz funkcję, która zwraca sumę elementów.
"""
pass
def tests(f): def tests(f):
inputs = [(2, 3), (0, 0), (1, 1)] inputs = [(2, 3), (0, 0), (1, 1)]