Question: My task:

Write a program that prompts for a list of numbers and at the end prints out both the maximum and minimum of the numbers. (and not suppose to use the min and max function)

eg. if i enter 4, 5, 7, done, it should print maximum as 7 and mininum as 4. 

```
Max = None
Min = None
while True:
    num = raw_input("Enter a number: ")
    if num == "done":
        break
    try:
        int(num)
    except:
        print "Invalid input"
        continue
    int(num)
    if Max is None or num > Max :
        maximum = num
    if Min is None or num < Min :
        minimum = num
print maximum, minimum

```

Number used: 4, 5, 7, done

Results: It prints 7 and 7 for both maximum and minimum

Answer: 
You test `Min` and `Max`, but set and print `minimum` and `maximum`.

Also, as TigerhawkT3 notes, while it's legal to work with strings, you probably meant to test with integers; `int(num)` throws away the result (it doesn't change `num` in place), you probably want `num = int(num)`.
`int(num)` casts `num` to an integer, then throws it away. You need to save a reference to it.

```
num = int(num)

```