Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/generate-pdfs-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:

# Merge all PDFs into one
echo "Merging PDFs..."
pdfunite pdfs/*.pdf corso-python-basic.pdf
find pdfs -type f -name "*.pdf" ! -name "corso-python-basic.pdf" -delete
echo "✅ Conversion complete! Final merged file: corso-python-basic.pdf"
pdfunite pdfs/*.pdf pdfs/corso-python-basic.pdf
echo "Conversion complete! Final merged file: corso-python-basic.pdf"

- name: Upload PDFs to release
env:
Expand Down
2 changes: 1 addition & 1 deletion 00_sommario_corso.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"id": "footer",
"metadata": {},
"source": [
"© 2025 Hanamai. All rights reserved. | Built with precision for real-time data streaming excellence."
"© 2025 hanam.ai - All rights reserved. | Built with precision for real-time data streaming excellence."
]
}
],
Expand Down
46 changes: 12 additions & 34 deletions 01_primi_passi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -423,17 +423,9 @@
"metadata": {},
"source": [
"### Esercizio 1: Saluto personalizzato\n",
"Modificare il file `greet.py` per chiedere il nome e stampare un messaggio di benvenuto più elaborato."
"Modificare il file `greet.py` trovato nella lezione per chiedere il nome e stampare un messaggio di benvenuto più elaborato."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4895b613",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "92adf2b9",
Expand All @@ -443,14 +435,6 @@
"Scrivere un nuovo script chiamato `calculate_square_root.py` che usa la libreria `math` per chiedere un numero all'utente e stampare la sua radice quadrata."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "35888dbe",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "5d9176d4",
Expand All @@ -461,24 +445,18 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "59ace534",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "b3f86e9e",
"metadata": {},
"source": [
"cell_type": "markdown",
"id": "72c70c52",
"metadata": {},
"source": [
"---\n",
"## Soluzioni\n",
"## 💡 Soluzioni\n",
"\n",
"> 📂 **[Clicca qui per vedere il codice delle soluzioni](code/01/solutions)**\n",
"\n",
"---"
]
},
]
},
{
"cell_type": "markdown",
"id": "4895b614",
Expand All @@ -495,7 +473,7 @@
"outputs": [],
"source": [
"def greet_user():\n",
" user_name = input(\"Wha is your name? \")\n",
" user_name = input(\"What is your name? \")\n",
" print(f\"Hello {user_name}! It is a real pleasure to have you here.\")\n",
"\n",
"if __name__ == \"__main__\":\n",
Expand Down Expand Up @@ -557,7 +535,7 @@
"id": "footer",
"metadata": {},
"source": [
"© 2025 Hanamai. All rights reserved. | Built with precision for real-time data streaming excellence."
"© 2025 hanam.ai - All rights reserved. | Built with precision for real-time data streaming excellence."
]
}
],
Expand Down
100 changes: 65 additions & 35 deletions 02_sintassi_base.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -540,16 +540,25 @@
"- Continuare a chiedere finché non indovina."
]
},
{
"cell_type": "markdown",
"id": "72c70c51",
"metadata": {},
"source": [
"---\n",
"## 💡 Soluzioni\n",
"\n",
"> 📂 **[Clicca qui per vedere il codice delle soluzioni](code/02/solutions)**\n",
"\n",
"---"
]
},
{
"cell_type": "markdown",
"id": "72c70c51",
"id": "4895b614",
"metadata": {},
"source": [
"---\n",
"## Soluzioni\n",
"\n",
"---\n",
"### Soluzione Esercizio 1: Variabili e tipi\n"
"### Soluzione Esercizio 1: Variabili e tipi"
]
},
{
Expand All @@ -559,9 +568,13 @@
"metadata": {},
"outputs": [],
"source": [
"user_name = \"Luca\"\n",
"age = 25\n",
"print(f\"Hi, my name is {user_name} and I am {age} years old.\")"
"def greet_user():\n",
" user_name = \"Luca\"\n",
" age = 25\n",
" print(f\"Hi, my name is {user_name} and I am {age} years old.\")\n",
"\n",
"if __name__ == \"__main__\":\n",
" greet_user()"
]
},
{
Expand All @@ -579,14 +592,19 @@
"metadata": {},
"outputs": [],
"source": [
"a = int(input(\"First number: \"))\n",
"b = int(input(\"Second number: \"))\n",
"if a > b:\n",
" print(\"First number is greater.\")\n",
"elif a < b:\n",
" print(\"First number is less.\")\n",
"else:\n",
" print(\"Numbers are equal.\")"
"def guess_numbers():\n",
" a = int(input(\"First number: \"))\n",
" b = int(input(\"Second number: \"))\n",
" if a > b:\n",
" print(\"First number is greater.\")\n",
" elif a < b:\n",
" print(\"First number is less.\")\n",
" else:\n",
" print(\"Numbers are equal.\")\n",
" print(f\"Hi, my name is {user_name} and I am {age} years old.\")\n",
"\n",
"if __name__ == \"__main__\":\n",
" guess_numbers()"
]
},
{
Expand All @@ -604,13 +622,17 @@
"metadata": {},
"outputs": [],
"source": [
"grade = int(input(\"Enter a grade: \"))\n",
"if grade >= 60:\n",
" print(\"Passed\")\n",
"elif grade >= 40:\n",
" print(\"Remedial\")\n",
"else:\n",
" print(\"Failed\")"
"def ask_grade():\n",
" grade = int(input(\"Enter a grade: \"))\n",
" if grade >= 60:\n",
" print(\"Passed\")\n",
" elif grade >= 40:\n",
" print(\"Remedial\")\n",
" else:\n",
" print(\"Failed\")\n",
"\n",
"if __name__ == \"__main__\":\n",
" ask_grade()"
]
},
{
Expand All @@ -628,8 +650,12 @@
"metadata": {},
"outputs": [],
"source": [
"for i in range(1, 11):\n",
" print(i)"
"def print_numbers():\n",
" for i in range(1, 11):\n",
" print(i)\n",
"\n",
"if __name__ == \"__main__\":\n",
" print_numbers()"
]
},
{
Expand All @@ -647,22 +673,26 @@
"metadata": {},
"outputs": [],
"source": [
"secret_number = 7\n",
"while True:\n",
" guess = int(input(\"Guuess a number: \"))\n",
" if guess == secret_number:\n",
" print(\"You guessed it!\")\n",
" break\n",
" else:\n",
" print(\"Try again.\")"
"def guess_number():\n",
" secret_number = 7\n",
" while True:\n",
" guess = int(input(\"Guess a number: \"))\n",
" if guess == secret_number:\n",
" print(\"You guessed it!\")\n",
" break\n",
" else:\n",
" print(\"Try again.\")\n",
"\n",
"if __name__ == \"__main__\":\n",
" guess_number()"
]
},
{
"cell_type": "markdown",
"id": "footer",
"metadata": {},
"source": [
"&copy; 2025 Hanamai. All rights reserved. | Built with precision for real-time data streaming excellence."
"&copy; 2025 hanam.ai - All rights reserved. | Built with precision for real-time data streaming excellence."
]
}
],
Expand Down
Loading