rozwiazanie zad 1
This commit is contained in:
parent
452f219f79
commit
f64e91b82f
@ -7,7 +7,9 @@ która zawiera tylko elementy z list o parzystych indeksach.
|
||||
"""
|
||||
|
||||
def even_elements(lista):
|
||||
pass
|
||||
|
||||
moja_lista = lista[::2]
|
||||
return moja_lista
|
||||
|
||||
|
||||
def tests(f):
|
||||
|
@ -6,7 +6,12 @@
|
||||
"""
|
||||
|
||||
def days_in_year(days):
|
||||
pass
|
||||
if ((days % 4) == 0 and ((days % 100) != 0)) or ((days % 400) == 0):
|
||||
dni=366
|
||||
else:
|
||||
dni=365
|
||||
|
||||
return dni
|
||||
|
||||
def tests(f):
|
||||
inputs = [[2015], [2012], [1900], [2400], [1977]]
|
||||
|
Loading…
Reference in New Issue
Block a user