small changes to function call. moved fakultaet.py in folder recursion
This commit is contained in:
parent
18497573e2
commit
b686f78d22
@ -31,10 +31,10 @@ def even_num_while(li):
|
|||||||
i += 1
|
i += 1
|
||||||
return even_list
|
return even_list
|
||||||
|
|
||||||
print(even_num_for(li)) # a)
|
print(f"1. a) {even_num_for(li)}") # a)
|
||||||
print(even_num_lambda(li)) # b)
|
print(f"1. b) {even_num_lambda(li)}") # b)
|
||||||
print(even_num_list_comprehension(li)) # c)
|
print(f"1. c) {even_num_list_comprehension(li)}") # c)
|
||||||
print(even_num_while(li)) # d)
|
print(f"1. d) {even_num_while(li)}") # d)
|
||||||
|
|
||||||
# 2.) Elemente umwandeln
|
# 2.) Elemente umwandeln
|
||||||
|
|
||||||
@ -68,8 +68,8 @@ def to_string_while(li):
|
|||||||
i += 1
|
i += 1
|
||||||
return string_list
|
return string_list
|
||||||
|
|
||||||
print(to_string_for(li)) # a)
|
print(f"2. a) {to_string_for(li)}") # a)
|
||||||
print(to_string_lambda(li)) # b)
|
print(f"2. b) {to_string_lambda(li)}") # b)
|
||||||
print(to_string_map(li)) # c)
|
print(f"2. c) {to_string_map(li)}") # c)
|
||||||
print(to_string_list_comprehension(li)) # d)
|
print(f"2. d) {to_string_list_comprehension(li)}") # d)
|
||||||
print(to_string_while(li)) # e)
|
print(f"2. e) {to_string_while(li)}") # e)
|
||||||
Loading…
x
Reference in New Issue
Block a user