<jupyter_start><jupyter_text>ISM Week 04 Test Demo - generate student - specific dataGet your prices by running the cell below and copy-paste them in the test notebook.<jupyter_code># defines a function that will take student input and verify
# Students, please press Shift + Enter to run this cell ONLY ONCE and then enter your B-number when prompted
# if you get an error close the notebook and restart it 
# or better yer restart you borwser but always enter Noteable from the link in Learn
# Otherwise ignore this code - not required for course

def b_num_input():
    b_num = input("Please enter your B-number: ")
    while True:
        if len(b_num) != 7:
            print("You have entered ", b_num, "This seems to not be 7 characters. If you are sure, type Y, otherwise type N to enter it again.")
            conf = input("Are you sure (Y/N): ")
            if conf == "Y":
                break
            else:
                b_num = input("Please enter your B-number: ")
        else:
            break
    aux = float(b_num[-2:])
    if aux == 0:
        num = 10
    else:
        num = aux
    num_list = [num, round(num*1.12,2), round(num*1.12*1.2,2), round(num*1.12*1.2*.7,2), round(num*1.12*1.2*.7*1.1,2)]
    print("Your closing prices to use below are: ")
    return num_list
num_list = b_num_input()
num_list<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup