forked from tdwojak/Python2017
Merge branch 'master' of https://git.wmi.amu.edu.pl/tdwojak/Python2017
# Conflicts: # labs02/test_task.py
This commit is contained in:
parent
505e2aa30c
commit
5fbc3b57d4
@ -24,3 +24,5 @@ def tests(f):
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(tests(even_elements))
|
print(tests(even_elements))
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ def sum_from_one_to_n(n):
|
|||||||
sum+=i
|
sum+=i
|
||||||
return sum
|
return sum
|
||||||
|
|
||||||
print(sum_from_one_to_n(3))
|
|
||||||
|
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
|
11
labs03/task_lab_01.py
Normal file
11
labs03/task_lab_01.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
def dwojak(x): x *= 2
|
||||||
|
|
||||||
|
|
||||||
|
l = [1, 2, 3]
|
||||||
|
s = "123"
|
||||||
|
|
||||||
|
dwojak(l)
|
||||||
|
dwojak(s)
|
||||||
|
|
||||||
|
print(l)
|
||||||
|
print(s)
|
Loading…
Reference in New Issue
Block a user