forked from tdwojak/Python2017
14 lines
227 B
Python
14 lines
227 B
Python
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
def suma(liczby):
|
|
assert len(liczby) > 0
|
|
a=reduce(lambda a, b: a+b, liczby)
|
|
return a
|
|
|
|
def main():
|
|
print(suma([1, 2, 3, 4]))
|
|
|
|
if __name__ == "__main__":
|
|
main()
|