CSCI-101: Intro to Computer Science
Python Course

# Upside Down

When grading papers, Alex writes the grade on the top of the paper and then places the paper on the top of another stack. When she is done, she is left with a stack of papers in the wrong order.

Help Alex by writing a program which flips the order of the grades she inputs.

## Input

The first line of input is an integer $$1 \leq N \leq 100$$ that indicates the number of grades Alex has to reverse. The next $$N$$ lines each contain an integer $$0 \leq G \leq 100$$ that indicates each grade.

## Output

Output all of the grades $$G$$ in the opposite order you received them, each on its own line.

## Lab I/O Format

Your program should use the Lab Input/Output Format, as described below:

• When prompting for input, use the prompt string WORD>, where WORD is a single, uppercase word which describes the input.
• When providing output that will be graded, start the line with OUTPUT. Think of this as "boxing your answer" on a math worksheet, it lets us quickly find your answer. We will ignore any lines which do not start with OUTPUT.
• You may interleave the inputs and outputs in any order you wish. For example, you might want to recieve all of your inputs (order of inputs still matters!), then print all of your outputs (order of outputs still matters!), or you might want to do input/output, input/output, etc.

## Example Interaction

N> 5
G> 100
G> 94
G> 87
G> 100
G> 84
OUTPUT 84
OUTPUT 100
OUTPUT 87
OUTPUT 94
OUTPUT 100


## Hints

Need to create a list with $$N$$ elements in it? When you multiply a list by an integer ($$N$$) in Python, Python will repeat the list $$N$$ times. For example:

my_list = [0] * 6
# my list is [0, 0, 0, 0, 0, 0]