"""
CSCI150 Lab 1
Name:
Section:
Creativity:
"""
# ----------------------
# Section 1: Functions that return a value
# ----------------------
# TODO: Implement your functions that return here
# ----------------------
# Section 2: Functions that print
# ----------------------
def four_fours():
"""
Express the values 0..9 using exactly four 4s.
Allowed operators are +, -, *, //, %, **, and parentheses.
Returns:
None
"""
print(4+4-4-4, "is 4+4-4-4") # 0
# FILL THIS IN with similar expressions for 1 through 9
def convert_from_seconds(seconds):
"""
Print number of days, hours, minutes, and seconds in a given number of seconds.
Args:
seconds: non-negative integer representing number of seconds
Returns:
None
"""
days = seconds // (24 * 60 * 60) # Number of days
leftover_seconds = seconds % (24 * 60 * 60) # The leftover seconds
# FILL THIS IN to compute hours and minutes
print(days, "days")
# FILL THIS IN to print number of hours, minutes, seconds like shown above