teil 26 lambda Funktionen.

This commit is contained in:
Olli Graf
2024-06-16 14:25:18 +02:00
parent 31915dc7d6
commit 3607e2ef69
4 changed files with 57 additions and 0 deletions

7
teil26/square.py Normal file
View File

@@ -0,0 +1,7 @@
def square(x):
return x** 2
sq5 = square(5)
print(f'{sq5}')

5
teil26/square_lambda.py Normal file
View File

@@ -0,0 +1,5 @@
square = lambda x: x** 2
print(f'{square(5)}')