A Boolean answer: yes or no becomes true or false.
Boolean inputDatatypes
Built from 3 kinds of block, between Start and End. Each one has a guide.
B4Coder writes the same program as real code. Change the flowchart in the editor and the code changes with it.
hosteller = input("Do you stay in the hostel? (yes or no) ").strip().lower() in ("true", "yes")if hosteller: print("Collect your mess card from the warden.")else: print("Collect your bus pass from the office.")How each block becomes code: Python · Java · C++ · C# · JavaScript