{ "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": "
\n

Coding Activity (A)

\n

In the code cell below, create a program that executes like this

\n
\n\nWhat is the capital of Norway? \n
Oslo
\nCorrect, Oslo is the capital of Norway!\n
\n
\n
\n
", "metadata": {} }, { "id": "249f0f81-b70f-4964-9bf2-3c4aeee0f3fe", "cell_type": "code", "source": "# Coding Activity A\n\n\n\n\n", "metadata": { "trusted": true }, "outputs": [], "execution_count": 1 }, { "id": "f4aac6c5-1c0d-4755-b74a-db2fdfd4fad3", "cell_type": "markdown", "source": "
\n

Coding Activity (B)

\n

Work with your teacher to learn about selection with branching

\n

Branched selection means to use the command ELIF in order to accomodate more than one correct answer

\n\nTask\n

We will create a program, that when executed, will allow for any of the scenarios below

\n\n \n\n\n\n\n\n\n\n\n\n\n
\n\nName a primary colour? \n
Red
\nCorrect, Red is a primary colour!\n
\n
\n
\n
\n\nName a primary colour? \n
Blue
\nCorrect, Blue is a primary colour!\n
\n
\n
\n
\n\nName a primary colour? \n
Yellow
\nCorrect, Yellow is a primary colour!\n
\n
\n
\n
\n\nName a primary colour? \n
Purple
\nIncorrect, Purple is not a primary colour!\n
\n
\n

\n

Code with your teacher in the code cell below!⬇️⬇️⬇️

\n \n
", "metadata": {} }, { "id": "917010a3-e52d-4344-90b5-b40217cb0849", "cell_type": "code", "source": "# Coding Activity B\n\n\n\n", "metadata": { "trusted": true }, "outputs": [], "execution_count": null }, { "id": "8dbd3497-c682-4343-b25c-5194f943a9fb", "cell_type": "markdown", "source": "
\n

Coding Activity (C) - Creation of a quiz

\n

In the code cell below, create a quiz

\n

The quiz will feature:

\n \n\n

The questions / topic can be completely your own choice

\n
\n\n
Extension
\n

On the OneNote notebook for today's lesson there is an extension section with support on how to make the quiz even more engaging

\n
", "metadata": {} }, { "id": "5df997a6-e0ae-4946-a20c-7599bd78f093", "cell_type": "code", "source": "# Coding Activity C - Quiz\n\n\n\n", "metadata": { "trusted": true }, "outputs": [], "execution_count": null } ] }