forked from tdwojak/Python2017
task00 (labs05) done
This commit is contained in:
parent
f81cb81738
commit
672cf0b6ba
@ -1,11 +1,14 @@
|
||||
#!/usr/bin/env python2
|
||||
"""** zad. 0 **
|
||||
Napisz funkcję ``suma``, która przyjmnie jeden argument: listę liczb i zwróci ich sumę."""
|
||||
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
def suma(liczby):
|
||||
pass
|
||||
return(sum(liczby))
|
||||
|
||||
def main():
|
||||
print(summa([1, 2, 3, 4]))
|
||||
print(suma([1, 2, 3, 4]))
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user