Skip to content

Commit a76a1cf

Browse files
committed
version 1.9
1 parent a5eeb4c commit a76a1cf

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

05_funzioni_moduli.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
"source": [
5858
"# Definition of a function with positional arguments\n",
5959
"def greet(name, surname):\n",
60-
" print(f\"Ciao, {name} {surname}!\")\n",
60+
" print(f\"Hello, {name} {surname}!\")\n",
6161
"\n",
6262
"greet(\"Mario\", \"Rossi\")\n",
6363
"\n",
6464
"# Definition of a function with keyword arguments\n",
6565
"def animal_description(species, name):\n",
6666
" print(f\"This animal is a {species} named {name}.\")\n",
6767
"\n",
68-
"animal_description(name=\"Fido\", species=\"cane\")"
68+
"animal_description(name=\"Fido\", species=\"dog\")"
6969
]
7070
},
7171
{
@@ -485,7 +485,7 @@
485485
"greet(\"Mario\")\n",
486486
"\n",
487487
"# Set a different greeting\n",
488-
"greet(\"Ugo\", \"Buongiorno\")"
488+
"greet(\"Ugo\", \"Good morning\")"
489489
]
490490
},
491491
{
@@ -574,8 +574,8 @@
574574
"def to_lowercase(text):\n",
575575
" return text.lower()\n",
576576
"\n",
577-
"apply_format(\"Ciao mondo\", to_uppercase)\n",
578-
"apply_format(\"Ciao mondo\", to_lowercase)"
577+
"apply_format(\"Hello world\", to_uppercase)\n",
578+
"apply_format(\"Hello world\", to_lowercase)"
579579
]
580580
},
581581
{

08_librerie.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582
"import pandas as pd\n",
583583
"\n",
584584
"data = {'Product': ['Apples', 'Bananas', 'Oranges'], 'Quantity': [10, 5, 15], 'Price': [1.20, 0.80, 1.50]}\n",
585-
"df = pd.DataFrame(dati)\n",
585+
"df = pd.DataFrame(data)\n",
586586
"df['Total Price'] = df['Quantity'] * df['Price']\n",
587587
"print(df)"
588588
]

09_oop.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,13 @@
600600
"\n",
601601
" def set_discount(self, discount):\n",
602602
" if 0 <= discount <= 100:\n",
603-
" self.__price = self.__prezzo * (1 - discount / 100)\n",
603+
" self.__price = self.__price * (1 - discount / 100)\n",
604604
" print(f\"New pricew: {self.__price}\")\n",
605605
" else:\n",
606606
" print(\"Discount not valid. Enter a value between 0 and 100.\")\n",
607607
"\n",
608608
"p = Product(200)\n",
609-
"print(f\"Initial PRices: {p.get_price()}\")\n",
609+
"print(f\"Initial Prices: {p.get_price()}\")\n",
610610
"p.set_discount(10)\n",
611611
"p.set_discount(150)"
612612
]

11_progetto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
"source": [
452452
"### `tests/test_inventory.py`\n",
453453
"\n",
454-
"Questa cella creerà il file `test_inventory.py` all'interno della cartella `tests`. **Nota che importa `inventory_manager` e `models`**."
454+
"Questa cella creerà il file `test_inventory.py` all'interno della cartella `tests`."
455455
]
456456
},
457457
{

0 commit comments

Comments
 (0)