Jupyter Notebook - Instalação e teste

This commit is contained in:
Luiz Otávio
2023-02-14 15:28:40 -03:00
parent 2c0dbec2bd
commit ba83ca13cf
2 changed files with 136 additions and 0 deletions

126
aula195.ipynb Normal file
View File

@@ -0,0 +1,126 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "9dcb46f7",
"metadata": {},
"source": [
"# Esse é o meu título\n",
"\n",
"Essa linha cria uma variável `a`."
]
},
{
"cell_type": "markdown",
"id": "be0d3296",
"metadata": {},
"source": [
"Essa linha tem o valor da variável `a` em dobro"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "f279e39a",
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = 2\n",
"a"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "1f5d7348",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"b = a * 2\n",
"b"
]
},
{
"cell_type": "markdown",
"id": "9c7f93b9",
"metadata": {},
"source": [
"Essa linha mostra o valor de `a` + `b`"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "6b735c9e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"6"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a + b"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "20fba249",
"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.1"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

10
aula195.py Normal file
View File

@@ -0,0 +1,10 @@
# Jupyter Notebook - Instalação e teste
# Essa linha cria uma variável a
a = 2
# Essa linha tem o valor da variável `a` em dobro
b = a * 2 # 4
# Essa linha mostra o valor de `a` + `b`
print(a + b) # 6