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