'''
You have only the main() function.  Global variables (or programming outside of a function) are NOT allowed.  You are only allowed to have the main() command outside of a function.  You are NOT allowed to use any other functions or import any libraries/modules.
Within the main function, your program should create a loop which:
Ask the user for a value. 
If the user types a 'Q' goto step 3 below.  Otherwise, add the value to a list called aList and goto step 2.1
After a 'Q' is typed, take the values of aList from step 2 and store them in REVERSE order in a second list called bList.
Print out the values of both aList and bList (on 2 different lines).
Print out (on a 3rd line after step 4) the total number of values stored in each list & if that value is even or odd. 
 The program ends.
'''

def main():

    aList = []

    while True:
        value = input("Enter a value (enter Q to quit):"),
        if value == "Q":
            break
        else:
            aList.append(value)

    print(aList)



main()

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: