From f16dc12b9478ee83fc645b7c9f1b89ceaafe79ed Mon Sep 17 00:00:00 2001 From: Hanna Schilbert <hschilbe@cebitec.uni-bielefeld.de> Date: Tue, 29 Aug 2023 10:37:48 +0200 Subject: [PATCH] Upload New File --- ...Python_course_2023_exercises_B_part1.ipynb | 201 ++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 Exercises/Python_course_2023_exercises_B_part1.ipynb diff --git a/Exercises/Python_course_2023_exercises_B_part1.ipynb b/Exercises/Python_course_2023_exercises_B_part1.ipynb new file mode 100644 index 0000000..f512499 --- /dev/null +++ b/Exercises/Python_course_2023_exercises_B_part1.ipynb @@ -0,0 +1,201 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "provenance": [] + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + } + }, + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "9vv0rpCuGI-0" + }, + "source": [ + "# Python course 2023 - Exercises B\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "MmKoM-5LGKuq" + }, + "source": [ + "## Part1 - control structures" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "G7FusG7CGbta" + }, + "source": [ + "\n", + "\n", + "---\n", + "1.1) Write a script for guessing numbers!\n" + ] + }, + { + "cell_type": "code", + "metadata": { + "id": "scIcmdvJGjAe", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "488d171d-095f-403c-c47b-a743ea95cffb" + }, + "source": [ + "a = 3\n", + "b = input(\"Zahl eingeben: \")\n", + "\n", + "print(a + int(b))" + ], + "execution_count": null, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Zahl eingeben: 5\n", + "8\n" + ] + } + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "0q2YJKgCGjTT" + }, + "source": [ + "\n", + "\n", + "---\n", + "1.2) Add tips (smaller/larger) during the guessing process!\n" + ] + }, + { + "cell_type": "code", + "metadata": { + "id": "MATuLFxCGryV" + }, + "source": [], + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "\n", + "\n", + "---\n", + "BONUS TASK\n", + "1.3) Add additional tips (e.g. much smaller/ much larger) during the guessing process!" + ], + "metadata": { + "id": "OzCJMNL1_kYV" + } + }, + { + "cell_type": "code", + "source": [], + "metadata": { + "id": "mZhssDWR_kj6" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "# Repetition functions" + ], + "metadata": { + "id": "6zRrA2w--uwa" + } + }, + { + "cell_type": "markdown", + "source": [ + "---\n", + "" + ], + "metadata": { + "id": "_LHMfm_A-8ir" + } + }, + { + "cell_type": "code", + "source": [], + "metadata": { + "id": "FmdsEet_-7Tt" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "---\n", + "" + ], + "metadata": { + "id": "EXVyT2N__A-7" + } + }, + { + "cell_type": "code", + "source": [], + "metadata": { + "id": "lqnK6EMC_BQS" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "---\n", + "" + ], + "metadata": { + "id": "CnVBTJ60_B48" + } + }, + { + "cell_type": "code", + "source": [], + "metadata": { + "id": "kyrgOb8L_B_b" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "---\n", + "" + ], + "metadata": { + "id": "iVyw_qpT_CFL" + } + }, + { + "cell_type": "code", + "source": [], + "metadata": { + "id": "88TAQWrv_CK0" + }, + "execution_count": null, + "outputs": [] + } + ] +} \ No newline at end of file -- GitLab