From 18bac8c7f628065b60e5832c5f0f54aed51d9c32 Mon Sep 17 00:00:00 2001 From: cenriq07 Date: Sat, 29 Mar 2025 13:18:19 -0600 Subject: [PATCH 1/4] feat: lambda function --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ce47b77..5ab687c 100644 --- a/main.py +++ b/main.py @@ -1 +1,6 @@ -print("hello") \ No newline at end of file +print("hello") + +res = lambda x,y : x*y + +print(res(5,6)) + From 927643b37a108927eeaca1f2ce89beb8138f6186 Mon Sep 17 00:00:00 2001 From: cenriq07 Date: Sat, 29 Mar 2025 13:29:17 -0600 Subject: [PATCH 2/4] feat: lambda func2 added --- main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 5ab687c..fa8a05f 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ -print("hello") - -res = lambda x,y : x*y - -print(res(5,6)) +func1 = lambda x,y : x*y +print(func1(5,6)) +myList = [1,2,3,4,5] +func2 = lambda x: x*2 +result = map(func2, myList) +print(list(result)) \ No newline at end of file From f6f81e841e92e8a39d00930ddb6e205b84596f53 Mon Sep 17 00:00:00 2001 From: cenriq07 Date: Mon, 31 Mar 2025 17:48:15 -0600 Subject: [PATCH 3/4] feat: gitignore added --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +test \ No newline at end of file From b624a97aba620080bf5ad1a2cc6d3b3c69f6aeec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Cort=C3=A9s?= <62785501+cenriq07@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:19:56 -0600 Subject: [PATCH 4/4] Create README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b835f7a --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Header 1 + +This is some text for the following code: +~~~c +#include +~~~ + +## Header 2 +- Bullet 1 +- Bullet 2 + +The `main.c` file + +> [!NOTE] +> Useful information that users should know, even when skimming content. + +> [!TIP] +> Helpful advice for doing things better or more easily. + +> [!IMPORTANT] +> Key information users need to know to achieve their goal. + +> [!WARNING] +> Urgent info that needs immediate user attention to avoid problems. + +> [!CAUTION] +> Advises about risks or negative outcomes of certain actions.