Flowcharts: Map Your Code!
Can a map help Bit bake perfect cookies?
Real Python code
This is the code from the video. Read it out loud like a recipe, one line at a time!
print("Mix the dough")
print("Put cookies in the oven")
golden = input("Golden? ")
while golden != "yes":
print("Wait 1 minute...")
golden = input("Golden? ")
print("Take them out. Yum!")
Quiz time!
Which shape asks a yes or no question?
Yes! The diamond asks. Yes goes one way, no goes the other! Not quite. Have another go!The four shapes
The oval
The door in and out: Start and End
The rectangle
Do one step
The diamond
Ask a yes or no question
The arrow
Go next! Point back to make a loop
Plan first
Draw the map, then write the code
Try it yourself!
Draw a flowchart of your morning on paper, from waking up to leaving the house. Add a diamond, like "Is it a school day?"
Bit is working on the next one: Functions: make your own blocks