Finding the biggest number in a list of numbers This is the first time I tried to solve a problem and wrote code for it, rather than learning some code and trying out to see what I might be able to do with it. As such, it's not much, but I'd like any tips and help about how I wrote this. Basically, I tried to write a program to find the biggest number in a list of numbers.

def main():
    print("Enter a series of numbers separated only by spaces:", end='\t')
    n = input().split()
    n = [int(i) for i in n]
    while len(n) != 1:
        if n[0] &gt; n[1]:
            n.remove(n[1])
        else:
            n.remove(n[0])
    print("the biggest number is: ", n[0])
main()


Feedback? Did I do anything kinda noobish?
The most obvious thing I can see is that you wrote a loop when one was not needed.

largest = max(n)


Also, check your boundary conditions. What happens if no numbers are entered?