investment_simulator/demo.ipynb

54 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-06-29 13:54:51 +10:00
{
"cells": [
{
"cell_type": "code",
2024-06-29 21:21:35 +10:00
"execution_count": 1,
2024-06-29 13:54:51 +10:00
"metadata": {},
2024-06-29 21:21:35 +10:00
"outputs": [],
2024-06-29 13:54:51 +10:00
"source": [
"from dataclasses import dataclass\n",
"\n",
"@dataclass\n",
"class PropertyParams:\n",
" \"\"\"Tunable parameters that describe a property.\"\"\"\n",
" purchase_price: float\n",
" deposit_percentage: float\n",
" deposit_guarantor: bool\n",
" rental_income: float\n",
2024-06-29 21:21:35 +10:00
" ongoing_costs: float\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from transitions import Machine"
2024-06-29 13:54:51 +10:00
]
}
],
"metadata": {
"kernelspec": {
"display_name": "investment-simulator-KPfGkdIO-py3.12",
"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",
2024-06-29 21:21:35 +10:00
"version": "3.11.2"
2024-06-29 13:54:51 +10:00
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}