#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 14 09:41:10 2022 @author: cpresser """ import random """ 1. Write the function max max (a,b): returns the greater of a or b """ """ 3. Write the function max_list max_list(theList): use a loop with an if statement to find a maximum value in theList. 1. Create a variable called max and set it to the first value in theList. 2. Go through each value in theList. If you find something larger than max, replace max with that value 3. Return max """ """ The main portion of the program. """ x = int(input("Enter a number: ")) y = int(input("Enter a number: ")) """ 2. call the function with x and y as arguments and assign its result to m """ m = 0 print(f"The larger of {x} and {y} is {m}.") #create a random list of 10 items randomValues = [random.randint(0, 100) for n in range(10)] """ 4. call the function max_list with randomValues as an argument and assign its result to m """ m = 0 print(f"The largets value in {randomValues} is {m}")