forked from tdwojak/Python2017
task04 passed
This commit is contained in:
parent
117bd4cb90
commit
841880258b
@ -7,7 +7,11 @@ Jeśli podany argument jest mniejszy od 1 powinna być zwracana wartość 0.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def sum_from_one_to_n(n):
|
def sum_from_one_to_n(n):
|
||||||
pass
|
if n >= 1:
|
||||||
|
return(sum(range(1,n+1)))
|
||||||
|
if n < 1:
|
||||||
|
return (0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
|
Loading…
Reference in New Issue
Block a user