Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Python programming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerald W. Höfner
Python programming
Commits
f16dc12b
Commit
f16dc12b
authored
1 year ago
by
Hanna Schilbert
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
69fbf638
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Exercises/Python_course_2023_exercises_B_part1.ipynb
+201
-0
201 additions, 0 deletions
Exercises/Python_course_2023_exercises_B_part1.ipynb
with
201 additions
and
0 deletions
Exercises/Python_course_2023_exercises_B_part1.ipynb
0 → 100644
+
201
−
0
View file @
f16dc12b
{
"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
%% Cell type:markdown id: tags:
# Python course 2023 - Exercises B
%% Cell type:markdown id: tags:
## Part1 - control structures
%% Cell type:markdown id: tags:
---
1.1) Write a script for guessing numbers!
%% Cell type:code id: tags
:
```
a =
3
b = input("Zahl eingeben
:
"
)
print(a
+
int(b))
```
%%
Output
Zahl
eingeben:
5
8
%%
Cell
type:markdown
id:
tags:
---
1.
2) Add tips (smaller/larger) during the guessing process!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
BONUS TASK
1.3) Add additional tips (e.g. much smaller/ much larger) during the guessing process!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
# Repetition functions
%% Cell type:markdown id: tags:
---

%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---

%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---

%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---

%% Cell type:code id: tags:
```
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment