While loop using continue in Python

CODE:

while True:
    line=input('> ')
    if line[0] == '#':
        continue
    if line=='done' or line=='Done':
        break
    print(line)
print('Done!')

OUTPUT:

> #abc
> #Done
> Done
Done!
    

Comments