Write a function called welcome_message that takes in a parameter name and prints "Hello (name) :-)". For example, welcome_message('Aurora') should return "Hello Aurora :-)".
Write a function called area that takes in parameters width and length and returns the area (of the rectangle). For example, area(5,4) should return 20.
Write a function called address that combines 3 different string address parameters (city, state, and zip) and returns a userβs address. After the city and state inputs, add a comma and a space. For example, address('Seattle', 'WA', '98105') should return "Seattle, WA, 98105".
Change the code so that areaTriangle takes parameters for the base and height of a triangle and computes its area. For example, areaTriangle(12,45) should return 270.
Change the code below to create a function tripCost that calculates the cost of a trip. It should take the miles, milesPerGallon, and pricePerGallon as parameters and should return the cost of the trip. For example, tripCost(100, 25, 2.24) should return 8.96.
Write a function called even_or_odd that takes in a parameter num. If num is odd, return "odd", and if num is even, return "even". For example, even_or_odd(-65) should return "odd". Note: For this function, num is solely an integer. Remember that you can use % 2 == 0 to check if a number is even with no remainder when divided by 2.
Write a function called list_sum that takes in a parameter num_list, which is a list of numbers. The function should return the sum of all the numbers in the list. For example, list_sum([1, 2, 3]) should return 6. Hint: Use a for loop to iterate through the list and add each number to a total sum variable.