From 59d46892f3de08b731f189c2e9ef3c71a2432667 Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:19:58 -0300 Subject: [PATCH 1/9] commit1 --- exercises/02-Hello-World/app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exercises/02-Hello-World/app.py b/exercises/02-Hello-World/app.py index 801de24..bd93582 100644 --- a/exercises/02-Hello-World/app.py +++ b/exercises/02-Hello-World/app.py @@ -1 +1,8 @@ -# your code here \ No newline at end of file +# your code here +names = ['John', 'Kenny', 'Tom', 'Bob', 'Dilan'] + +def sort_names(names): + names.sort() + return names + +print(sort_names(names)) From ee310c0e618922b35f1251973676c6ca058b66f5 Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:20:52 -0300 Subject: [PATCH 2/9] commit#2 --- exercises/03-What-is-a-function/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/03-What-is-a-function/app.py b/exercises/03-What-is-a-function/app.py index 551610b..cda792d 100755 --- a/exercises/03-What-is-a-function/app.py +++ b/exercises/03-What-is-a-function/app.py @@ -1,10 +1,10 @@ def sum(number1,number2): return number1 + number2 -total = sum(2,3) -print(total) - - +# total = sum(2,3) +# print(total) +super_duper = sum(3445324, 53454423) +print(super_duper) From 296da21c398cf59b2aaaeda91a7d80500242d629 Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:21:45 -0300 Subject: [PATCH 3/9] commit#3 --- exercises/04-Call-a-function/app.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/exercises/04-Call-a-function/app.py b/exercises/04-Call-a-function/app.py index c856d48..4397274 100755 --- a/exercises/04-Call-a-function/app.py +++ b/exercises/04-Call-a-function/app.py @@ -1,4 +1,10 @@ def calculate_area(length,edge): return length * edge -# Your code Below this line: \ No newline at end of file +# Your code Below this line: +square_area1 = calculate_area(4,4) +square_area2 = calculate_area(2,2) +square_area3 = calculate_area(5,5) +print(square_area1) +print(square_area2) +print(square_area3) From 9d4c871f290363760111c6eb58c11e66336a9a67 Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:22:19 -0300 Subject: [PATCH 4/9] commit#5 --- exercises/05-Defining-vs-Calling-a-function/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exercises/05-Defining-vs-Calling-a-function/app.py b/exercises/05-Defining-vs-Calling-a-function/app.py index 79b86d8..d92caa7 100755 --- a/exercises/05-Defining-vs-Calling-a-function/app.py +++ b/exercises/05-Defining-vs-Calling-a-function/app.py @@ -1,5 +1,8 @@ # Define the function called "multi" that expects 2 parameters: +def multi(numOne, numTwo): + result= numOne*numTwo + return result # don't edit anything below this line return_value = multi(7,53812212) -print(return_value) \ No newline at end of file +print(return_value) From c62c881357e8e5cde5c27f7f5f43adbd4294b3aa Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:23:43 -0300 Subject: [PATCH 5/9] commit#5 --- exercises/06-lambda-functions/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/06-lambda-functions/app.py b/exercises/06-lambda-functions/app.py index e59626e..f190f27 100755 --- a/exercises/06-lambda-functions/app.py +++ b/exercises/06-lambda-functions/app.py @@ -1,2 +1,3 @@ # your function here +is_odd = lambda num: (num%2) From 117cff3b6e9825b82c5fa4e027972a266761d13b Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:25:36 -0300 Subject: [PATCH 6/9] commit #7 --- exercises/07-lambda-function-two/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/07-lambda-function-two/app.py b/exercises/07-lambda-function-two/app.py index fca265d..0164953 100755 --- a/exercises/07-lambda-function-two/app.py +++ b/exercises/07-lambda-function-two/app.py @@ -1,5 +1,5 @@ - - +slicer=slice(2) +rapid = lambda str: str[slicer].capitalize() # From this line above, plese do not change code below -print(rapid("bob")) #should print bo \ No newline at end of file +print(rapid("bob")) #should print bo From 5bfce9ed8b6091063617084e29841980b15b13dd Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:26:05 -0300 Subject: [PATCH 7/9] commit#8 --- exercises/08-Function-that-returns/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exercises/08-Function-that-returns/app.py b/exercises/08-Function-that-returns/app.py index 44ab611..595f1de 100755 --- a/exercises/08-Function-that-returns/app.py +++ b/exercises/08-Function-that-returns/app.py @@ -4,4 +4,8 @@ def dollar_to_euro(dollar_value): def euro_to_yen(euro_value): return euro_value * 124.15 -####### ↓ YOUR CODE BELOW ↓ ####### \ No newline at end of file +####### ↓ YOUR CODE BELOW ↓ ####### + + + +print(euro_to_yen(dollar_to_euro(137))) From 265b0075148bb2757b681578090cee24de90d6fe Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:26:37 -0300 Subject: [PATCH 8/9] commit#9 --- exercises/09-Function-parameters/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/09-Function-parameters/app.py b/exercises/09-Function-parameters/app.py index 71294e0..d568dbc 100755 --- a/exercises/09-Function-parameters/app.py +++ b/exercises/09-Function-parameters/app.py @@ -1,7 +1,7 @@ # Your code goes here: -def render_person(param): - return param +def render_person(name,date,color,num,sex): + return f'{name} is a {num} years old {sex} born in {date} with {color} eyes' # Do not edit below this line -print(render_person('Bob', '05/22/1983', 'green', 23, 'male')) \ No newline at end of file +print(render_person('Bob', '05/22/1983', 'green', 23, 'male')) From 0b8a4b41ff131025810b503b6e2d2f4ea3447aba Mon Sep 17 00:00:00 2001 From: Andres Sanchez <61630429+AttilioGiglio@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:27:07 -0300 Subject: [PATCH 9/9] commit#10 --- exercises/10-Array-Methods/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/10-Array-Methods/app.py b/exercises/10-Array-Methods/app.py index fdddc23..bbfe7fb 100755 --- a/exercises/10-Array-Methods/app.py +++ b/exercises/10-Array-Methods/app.py @@ -1,5 +1,7 @@ names = ['John', 'Kenny', 'Tom', 'Bob', 'Dilan'] -## CREATE YOUR FUNCTION HERE +def sort_names(names): + names.sort() + return names print(sort_names(names))