forked from tdwojak/Python2017
15 lines
210 B
Python
15 lines
210 B
Python
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
def suma(liczby):
|
|
sm = 0
|
|
for i in liczby:
|
|
sm += i
|
|
return sm
|
|
|
|
def main():
|
|
print(suma([1, 2, 3, 4]))
|
|
|
|
if __name__ == "__main__":
|
|
main()
|