While loop using continue in Python Get link Facebook X Pinterest Email Other Apps 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! Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment