Code:
    # Imported array of data from a text file. This code works with no problems.
    q1, a1 = loadtxt("values.txt", unpack = True, skiprows = 1)
    print q1
    print a1

    # Creating a while loop for this part of the code. This code works with no problems.
    a = 3
    b = -2
    c = -9
    q = 0.5
    qt = 0.1

    while q < 1.5:
...