just play with Python, a small question on interactive mode.
- enter python interactive mode, following line shows detail on interactive mode List item
- >>>if flag:
- . . . print("flag is True")
- after above step, i WANT to exit the whole if block. but if press enter for above line 4, it will start line with "...", which means still in if block.
question: HOW CAN I exit if block and write sth like the following in interactive mode :
flag=True if flag: print("flag is True") print("exit if now ")
Ramy Malak answered question
Have an answer?