Dateien nach "/" hochladen
This commit is contained in:
325
Untitled.ipynb
Normal file
325
Untitled.ipynb
Normal file
@@ -0,0 +1,325 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "0baad29f-fd23-4240-b0ac-8e5722ad6e11",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Heloo\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(\"Hello\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "77543967-85e1-453f-a978-1036f0b40c08",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Taswar 53\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"name=\"Taswar\"\n",
|
||||
"age=53\n",
|
||||
"print(name,age)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "fbbda89a-4371-4a2b-885e-048b794641c5",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Hallo\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print('Hallo')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "e21f92bb-cf24-4aab-aa83-0adaa53cf482",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"3\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"a=3 ## hello\n",
|
||||
"print(a)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "7e26af2b-f14c-4ead-aa51-9badbb421fdc",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Das Ergebnis ist: 8\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(\"Das Ergebnis ist:\", 5 + 3)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"id": "a0ba2ad4-378d-41e8-84e5-01f610267295",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Willkommen im Python-Unterricht!\n",
|
||||
"8\n",
|
||||
"Das Ergebnis ist: 8\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(\"Willkommen im Python-Unterricht!\")\n",
|
||||
"print(5 + 3)\n",
|
||||
"print(\"Das Ergebnis ist:\", 5 + 3)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "38d462a9-c679-4e13-a466-072b5d69d9e1",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"2 5 10\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(2, 5, 10)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"id": "e8208a73-1979-42d9-a5e0-da6637dc9778",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Mein Name ist Anna.\n",
|
||||
"Ich bin 18 Jahre alt.\n",
|
||||
"Ich besuche die Berufsschule bib … Paderborn\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(\"Mein Name ist Anna.\")\n",
|
||||
"print(\"Ich bin 18 Jahre alt.\")\n",
|
||||
"print(\"Ich besuche die Berufsschule bib … Paderborn\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"id": "260cbea3-7d86-44ba-a44c-45946503f893",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Name: Ali\n",
|
||||
"Alter: 20\n",
|
||||
"Note: 1.7\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"name = \"Ali\"\n",
|
||||
"alter = 20\n",
|
||||
"note = 1.7\n",
|
||||
"print(\"Name:\", name)\n",
|
||||
"print(\"Alter:\", alter)\n",
|
||||
"print(\"Note:\", note)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "9c164fc9-8421-44bf-90ba-af8f022e2821",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Ich heiße Sara und bin 19 Jahre alt.\n",
|
||||
"Meine Lieblingsfarbe ist blau\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"name = \"Sara\" \n",
|
||||
"alter = 19\n",
|
||||
"farbe = \"blau\" \n",
|
||||
"print(\"Ich heiße\", name, \"und bin\", alter, \"Jahre alt.\")\n",
|
||||
"print(\"Meine Lieblingsfarbe ist\", farbe)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"id": "9a28efac-5fd9-4565-80a3-993a0c060e27",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdin",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Wie heißt du? Iqbal\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Hallo, Iqbal\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"name = input(\"Wie heißt du? \")\n",
|
||||
"print(\"Hallo,\", name)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"id": "0cee8a7d-d4da-4c21-8406-ab6b027e0ebe",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdin",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Gib eine Zahl ein: 5\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Das Doppelte ist: 10\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"zahl = int(input(\"Gib eine Zahl ein: \"))\n",
|
||||
"print(\"Das Doppelte ist:\", zahl * 2)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"id": "40f6100c-aa43-4425-a76f-5ec579cbc6df",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdin",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Erste Zahl: 3\n",
|
||||
"Zweite Zahl: 4\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Die Summe ist: 7\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"a = int(input(\"Erste Zahl: \"))\n",
|
||||
"b = int(input(\"Zweite Zahl: \"))\n",
|
||||
"summe = a + b\n",
|
||||
"print(\"Die Summe ist:\", summe)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "f70bca84-68a8-4973-a50b-05392bfaa84f",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "6e3b3e0d-1f60-4a17-bacf-02fc6afd6837",
|
||||
"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.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
Reference in New Issue
Block a user