Browse Source

updates

master
F2256342 - Daniel de Oliveira Carvalho 2 years ago
parent
commit
915e51a82d
  1. 207
      nb_account_etl.ipynb
  2. 39
      nb_lab.ipynb

207
nb_account_etl.ipynb

File diff suppressed because one or more lines are too long

39
nb_lab.ipynb

@ -515,6 +515,45 @@
"finally:\n", "finally:\n",
" connection.close()" " connection.close()"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"class DataHolder:\n",
" def __init__(self, name, age, email):\n",
" \"\"\"Initialize the DataHolder with name, age, and email.\"\"\"\n",
" self.name = name\n",
" self.age = age\n",
" self.email = email\n",
"\n",
" def display_info(self):\n",
" \"\"\"Display the information of the DataHolder.\"\"\"\n",
" print(f\"Name: {self.name}\")\n",
" print(f\"Age: {self.age}\")\n",
" print(f\"Email: {self.email}\")\n",
"\n",
" def update_age(self, new_age):\n",
" \"\"\"Update the age of the DataHolder.\"\"\"\n",
" self.age = new_age\n",
" print(f\"Age updated to: {self.age}\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from decimal import Decimal\n",
"\n",
"string = \"12.99\"\n",
"test = Decimal(string)\n",
"\n",
"print(test)"
]
} }
], ],
"metadata": { "metadata": {

Loading…
Cancel
Save