Upload files to "/"

This commit is contained in:
2026-02-06 15:04:01 +01:00
commit eadea2a7af

139
UNTERRICHT_3.ipynb Normal file
View File

@@ -0,0 +1,139 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "f42518c3-6c95-4a1b-85fa-dfa9da61f09a",
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Gib eine Zahl ein: 8\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Das Doppelte ist: 16\n"
]
}
],
"source": [
"zahl = int(input(\"Gib eine Zahl ein:\"))\n",
"print(\"Das Doppelte ist:\", zahl*2)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "f7b8610a-15b0-4769-bf33-fbc692d76c2e",
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Wie heißt du? angi\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hallo, angi\n"
]
}
],
"source": [
"name = input (\"Wie heißt du?\")\n",
"print(\"Hallo,\", name )"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "74c80dd7-0d20-4fdf-9c43-b0b9e7f1cfcf",
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Are you team Jacob or Edward? Edward\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hi my name is Angela and I am team Edward\n"
]
}
],
"source": [
"team = input(\"Are you team Jacob or Edward?\")\n",
"print (\"Hi my name is Angela and I am team\", team)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "d8235589-8c7a-44df-af76-a2765a969a44",
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Zahl 1: 9\n",
"Zahl 2: 21\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Zahl 1 + Zahl 2 ist: 30\n"
]
}
],
"source": [
"zahl1 = int(input(\"Zahl 1:\"))\n",
"zahl2 = int(input(\"Zahl 2:\"))\n",
"print(\"Zahl 1 + Zahl 2 ist:\", zahl1 + zahl2)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3da98eee-8780-4256-9b06-4e1a4d9b71d1",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}