Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

I am having trouble executing the following functions in python: Define a function list_min that takes in a list of numbers as an argument.

I am having trouble executing the following functions in python:

1. Define a function list_min that takes in a list of numbers as an argument. Your function will iterate through the list with a for loop and return the smallest value in the given list. Your function only has to work on numerical values.

Do not use the built in min or max function or the .sort() method.

2. Define a function format_correctly that takes in a string as an argument. It will return a correctly-formatted version of the given string that:

  1. Strips the given string of any surrounding whitespace
  2. Made the first character of the string capitalized
  3. Made the remaining characters in the string lowercase. You can assume the given string will consist of all letters.

Hint: Use string slicing to build the correctly-formatted string to return

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question