Commit 4b2a42f5 by Patryk Czarnik

pierwsze przykłady jupyter

parent 164e1de4
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "7a586e53-d456-4547-8723-913555b05982",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello world\n"
]
}
],
"source": [
"print(\"Hello world\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "51539c20-898e-4a7d-bce2-638f6d4ee4f1",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Ala ma kota'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"'Ala ma kota'"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "6fddcec8-4bc1-4629-abe9-8c557535f6cb",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"14"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"2+3*4"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "363a12c8-4678-43b6-a626-45004a4686a0",
"metadata": {},
"outputs": [],
"source": [
"tab = [[x * y for y in range(1, 11)] for x in range(1, 11)]"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "246e9969-2259-4f71-8271-ddd3c77f245e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[[1, 2, 3, 4, 5, 6, 7, 8, 9, 10],\n",
" [2, 4, 6, 8, 10, 12, 14, 16, 18, 20],\n",
" [3, 6, 9, 12, 15, 18, 21, 24, 27, 30],\n",
" [4, 8, 12, 16, 20, 24, 28, 32, 36, 40],\n",
" [5, 10, 15, 20, 25, 30, 35, 40, 45, 50],\n",
" [6, 12, 18, 24, 30, 36, 42, 48, 54, 60],\n",
" [7, 14, 21, 28, 35, 42, 49, 56, 63, 70],\n",
" [8, 16, 24, 32, 40, 48, 56, 64, 72, 80],\n",
" [9, 18, 27, 36, 45, 54, 63, 72, 81, 90],\n",
" [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"tab"
]
},
{
"cell_type": "markdown",
"id": "911594e8-230f-40bd-884a-1559a149a5f0",
"metadata": {},
"source": [
"Zwykły tekst.\n",
"\n",
"# Nagłówek\n",
"\n",
"Lista:\n",
"- jeden\n",
"- dwa\n",
"- trzy\n",
"\n",
"Odnośnik do [strony ALX](https://alx.pl)\n",
"\n",
"Zmienna `emp` jest klasy `Employee`."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "66eb1372-6868-4513-9f5b-3624be92ebb2",
"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.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment