A Boolean holds the answer to a question: is the mark 40 or more?
Boolean valuesDatatypes
Built from 4 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.
marks = int(input("Your marks "))passed = marks >= 40print("passed = " + str(passed).lower())if passed: print("Well done, you passed!")else: print("Not this time: you need 40.")How each block becomes code: Python · Java · C++ · C# · JavaScript