{ "metadata": { "kernelspec": { "name": "python", "display_name": "Python (Pyodide)", "language": "python" }, "language_info": { "codemirror_mode": { "name": "python", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8" } }, "nbformat_minor": 5, "nbformat": 4, "cells": [ { "id": "42d093f6-6c2f-4f2c-b9d1-68dc28b12993", "cell_type": "markdown", "source": "
In the code cell below, create a program that executes like this
\nWork with your teacher to learn about selection with branching
\nBranched selection means to use the command ELIF in order to accomodate more than one correct answer
\n\nTask\nWe will create a program, that when executed, will allow for any of the scenarios below
\n\n \n\n\nName a primary colour? \n \nRed \nCorrect, Red is a primary colour!\n\n | \n\n\n \n\nName a primary colour? \n \nBlue \nCorrect, Blue is a primary colour!\n\n | \n\n\n \n\nName a primary colour? \n \n Yellow \nCorrect, Yellow is a primary colour!\n\n | \n\n\n \n\nName a primary colour? \n \n Purple \nIncorrect, Purple is not a primary colour!\n\n | \n\n
Code with your teacher in the code cell below!⬇️⬇️⬇️
\n \nIn the code cell below, create a quiz
\nThe quiz will feature:
\nThe questions / topic can be completely your own choice
\nOn the OneNote notebook for today's lesson there is an extension section with support on how to make the quiz even more engaging
\n