From b24a8ffdf0570395c422fab6690043971df3e2c2 Mon Sep 17 00:00:00 2001 From: Odion Sonny-Egbeahie Date: Sun, 26 Jun 2022 19:24:10 +0100 Subject: [PATCH] Edit Functions and Higher order functions --- 11_Day_Functions/11_functions.md | 2 +- 14_Day_Higher_order_functions/14_higher_order_functions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/11_Day_Functions/11_functions.md b/11_Day_Functions/11_functions.md index a80e5bf..d14bb8a 100644 --- a/11_Day_Functions/11_functions.md +++ b/11_Day_Functions/11_functions.md @@ -404,7 +404,7 @@ print(reverse_list1(["A", "B", "C"])) food_staff = ['Potato', 'Tomato', 'Mango', 'Milk']; print(add_item(food_staff, 'Meat')) # ['Potato', 'Tomato', 'Mango', 'Milk','Meat']; numbers = [2, 3, 7, 9]; -print(add_item(numbers, 5)) [2, 3, 7, 9, 5] +print(add_item(numbers, 5)) # [2, 3, 7, 9, 5] ``` 12. Declare a function named remove_item. It takes a list and an item parameters. It returns a list with the item removed from it. diff --git a/14_Day_Higher_order_functions/14_higher_order_functions.md b/14_Day_Higher_order_functions/14_higher_order_functions.md index 2af24c6..4d01570 100644 --- a/14_Day_Higher_order_functions/14_higher_order_functions.md +++ b/14_Day_Higher_order_functions/14_higher_order_functions.md @@ -201,7 +201,7 @@ def decorator_with_parameters(function): @decorator_with_parameters def print_full_name(first_name, last_name, country): print("I am {} {}. I love to teach.".format( - first_name, last_name, country)) + first_name, last_name)) print_full_name("Asabeneh", "Yetayeh",'Finland') ```