If both empty strings and None are evaluated as FALSE,then:
start = None while start != "": start = (input("\nStart: ")) if start: start = int(start) finish = int(input("Finish: ")) print("word[", start, ":", finish, "] is", end=" ") print(word[start:finish]) input("\n\nPress the enter key to exit.")In the above code the while loop should evaluate to false and the loop should not be entered in the first place right? But if I run the program it runs fine.(this is a piece of code from Pizza slicer program from the book Python programming for absolute beginners).Where is my understanding messed up?