Getting startedFunctionsVariablesVariables 2InputsSelectionFlowchartsData typesPseudocode1Pseudocode2Subprogram1Subprogram2 |
Selectionage = 21
if age >= 18: print ("Adult") else: print ("Child") Write this code below and test it out. Here are some common mistakes:
Did it work? Make the following changes and then see what happens:
Code something with selectionUse the example code in task above. Can you create some code that does the following?
Fix this codeTest you knowledge
Loading KS3 – Python – Selection
|