""" CSCI 150 Lab 1 Name: Section: Creativity: """ """ Section 1: Functions that return a value """ def euros_to_dollars(euros): """ Returns the dollar equivalent of the parameter in Euros, assuming an exchange rate of 1 Euro = $1.10 """ return 0 def mpg_from_metric(kilometers, liters): """ Converts from kilometers and liters to miles per gallon Input: non-negative values kilometers and liters Returns: miles per gallon for the given parameters """ return 0 """ Section 2: Functions that print """ def four_fours(): """ Prints an arithmetic expression for each value 0..9 using exactly four 4s and the operators +, -, *, //, %, **, and parentheses """ print(4+4-4-4, "is 4+4-4-4") # 0 def convert_from_seconds(s): """ Input: non-negative integer representing number of seconds Prints: number of days, hours, minutes and seconds """ days = s // (24*60*60) # Number of days s = s % (24*60*60) # The leftover print(days, "days")