Skip to content

Commit 4225ec8

Browse files
committed
Typo fixes
1 parent 270c287 commit 4225ec8

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

week2/3_Functions.ipynb

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
"protein = int(input(\"How many protein does this product have?: \"))\n",
174174
"\n",
175175
"total_calories = carbohydrate * 4 + fat * 9 + protein * 4\n",
176-
"print(\"This product have \" + str(total_calories) + \" calories in it.\")"
176+
"print(\"This product has \" + str(total_calories) + \" calories in it.\")"
177177
]
178178
},
179179
{
@@ -205,7 +205,7 @@
205205
" protein = int(input(\"How many protein does this product have?: \"))\n",
206206
"\n",
207207
" calories = carbohydrate * 4 + fat * 9 + protein * 4\n",
208-
" print(\"This product have \" + str(calories) + \" calories in it.\")"
208+
" print(\"This product has \" + str(calories) + \" calories in it.\")"
209209
]
210210
},
211211
{
@@ -344,7 +344,7 @@
344344
"source": [
345345
"def calculate_calories():\n",
346346
" calories = carbohydrate * 4 + fat * 9 + protein * 4\n",
347-
" print(\"This product have \" + str(calories) + \" calories in it.\")\n",
347+
" print(\"This product has \" + str(calories) + \" calories in it.\")\n",
348348
"\n",
349349
"\n",
350350
"carbohydrate = int(input(\"How many carbohydrate does this product have?: \"))\n",
@@ -387,7 +387,7 @@
387387
"source": [
388388
"def calculate_calories(carbohydrate, fat, protein):\n",
389389
" calories = carbohydrate * 4 + fat * 9 + protein * 4\n",
390-
" print(\"This product have \" + str(calories) + \" calories in it.\")"
390+
" print(\"This product has \" + str(calories) + \" calories in it.\")"
391391
]
392392
},
393393
{
@@ -453,7 +453,7 @@
453453
"# פרמטרים\n",
454454
"def calculate_calories(carbohydrate, fat, protein): # כותרת הפונקציה\n",
455455
" calories = carbohydrate * 4 + fat * 9 + protein * 4\n",
456-
" print(\"This product have \" + str(calories) + \" calories in it.\")\n",
456+
" print(\"This product has \" + str(calories) + \" calories in it.\")\n",
457457
"\n",
458458
"\n",
459459
"product_carbohydrate = int(input(\"How many carbohydrate does this product have?: \"))\n",
@@ -614,7 +614,7 @@
614614
"metadata": {},
615615
"outputs": [],
616616
"source": [
617-
"print(\"Calories in Hamburger: \" + str(calculate_calories(50, 17.5, 36)))\n",
617+
"print(\"Calories in a Hamburger: \" + str(calculate_calories(50, 17.5, 36)))\n",
618618
"print(\"Calories in 2 Hamburgers: \" + str(2 * calculate_calories(50, 17.5, 36)))"
619619
]
620620
},
@@ -636,7 +636,7 @@
636636
"metadata": {},
637637
"outputs": [],
638638
"source": [
639-
"print(\"Calories in Hamburger: \" + str(501.5))\n",
639+
"print(\"Calories in a Hamburger: \" + str(501.5))\n",
640640
"print(\"Calories in 2 Hamburgers: \" + str(2 * 501.5))"
641641
]
642642
},
@@ -656,7 +656,7 @@
656656
"outputs": [],
657657
"source": [
658658
"calories_in_hamburger = calculate_calories(50, 17.5, 36)\n",
659-
"print(\"Calories in Hamburger: \" + str(calories_in_hamburger))\n",
659+
"print(\"Calories in a Hamburger: \" + str(calories_in_hamburger))\n",
660660
"print(\"Calories in 2 Hamburgers: \" + str(2 * calories_in_hamburger))"
661661
]
662662
},
@@ -687,7 +687,7 @@
687687
"product_protein = int(input(\"How many protein does this product have?: \"))\n",
688688
"# ארגומנטים\n",
689689
"cal = calculate_calories(product_carbohydrate, product_fat, product_protein)\n",
690-
"print(\"This product have \" + str(cal) + \" calories in it.\")"
690+
"print(\"This product has \" + str(cal) + \" calories in it.\")"
691691
]
692692
},
693693
{
@@ -1156,18 +1156,9 @@
11561156
},
11571157
{
11581158
"cell_type": "code",
1159-
"execution_count": 23,
1160-
"metadata": {},
1161-
"outputs": [
1162-
{
1163-
"name": "stdout",
1164-
"output_type": "stream",
1165-
"text": [
1166-
"How many hours did it take to finish a 5km run? 5\n",
1167-
"You can't do it :(\n"
1168-
]
1169-
}
1170-
],
1159+
"execution_count": null,
1160+
"metadata": {},
1161+
"outputs": [],
11711162
"source": [
11721163
"MARATHON_DISTANCE = 42.195\n",
11731164
"\n",

0 commit comments

Comments
 (0)