# Arup Guha
# 6/16/2025
# Sample Quiz Solutions Code

def q1():
    secondsPlay = int(input("How many seconds will you play?\n"))
    width = int(input("How many milliseconds does one frame show?\n"))

    print("Number of frames =", 1000*secondsPlay//width)

    # Note: I like to ask questions about integer division and mod.

def q2():

    claySize = int(input("How many grams is the ball of clay?\n"))

    # Too small add clay.
    if claySize < 45:
        print("You must add", 45 - claySize ,"grams of clay before packaging.")

    # It's just right.
    elif claySize <= 55:
        print("Your clay is ready to be packaged.")

    # Too heavy!
    else:
        print("You must remove", claySize - 55, "grams of clay before packaging.")

def q3():

    n = int(input("Please enter n.\n"))

    # Method 1 using **
    for i in range(1, n+1):
        print(2**i, end=" ")
    print()

    # Method 2 storing previous power of 2 and doubling.
    ans = 2
    for i in range(n):
        print(ans, end=" ")
        ans = 2*ans
    print()

def q4():

    values = []

    # Get the first value.
    val = int(input("Enter next test score.\n"))

    # Loop until we hit -1.
    while val != -1:

        # If we're here, it's safe to add the number to the list.
        values.append(val)

        # Get the next number.
        val = int(input("Enter next test score.\n"))

    print(values)

q4()
