From f340abff766c0642e43d130cfec1b0c27e41b8b5 Mon Sep 17 00:00:00 2001 From: HaseebAliKhan <57507467+HaseebAliKhan@users.noreply.github.com> Date: Thu, 9 Nov 2023 06:18:20 +0500 Subject: [PATCH 1/4] Update class8.ipynb Updated Class 8 --- 08_class(dictionary)/class8.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/08_class(dictionary)/class8.ipynb b/08_class(dictionary)/class8.ipynb index ad85deb..ec30ed5 100644 --- a/08_class(dictionary)/class8.ipynb +++ b/08_class(dictionary)/class8.ipynb @@ -579,13 +579,13 @@ } ], "source": [ - "alien_0: list[Key, Value] = {'color': 'green', 'points': 5}\n", - "alien_1: list[Key, Value] = {'color': 'yellow', 'points': 10}\n", - "alien_2: list[Key, Value] = {'color': 'red', 'points': 15}\n", - "\n", - "aliens:list[Dict[str,str]] = [alien_0, alien_1, alien_2]\n", - "for alien in aliens:\n", - " print(alien)" +"alien_0: Dict[Key, Value] = {'color': 'green', 'points': 5}\n", +"alien_1: Dict[Key, Value] = {'color': 'yellow', 'points': 10}\n", +"alien_2: Dict[Key, Value] = {'color': 'red', 'points': 15}\n", + +"aliens:list[Dict[Key, Value]] = [alien_0, alien_1, alien_2]\n", +"for alien in aliens:\n", +" print(alien)", ] }, { From 2d72d018ad4cf8c35f251e7b50aa73449cfa3280 Mon Sep 17 00:00:00 2001 From: HaseebAliKhan <57507467+HaseebAliKhan@users.noreply.github.com> Date: Thu, 9 Nov 2023 06:20:24 +0500 Subject: [PATCH 2/4] Update class8.ipynb --- 08_class(dictionary)/class8.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/08_class(dictionary)/class8.ipynb b/08_class(dictionary)/class8.ipynb index ec30ed5..ea38806 100644 --- a/08_class(dictionary)/class8.ipynb +++ b/08_class(dictionary)/class8.ipynb @@ -579,13 +579,13 @@ } ], "source": [ -"alien_0: Dict[Key, Value] = {'color': 'green', 'points': 5}\n", -"alien_1: Dict[Key, Value] = {'color': 'yellow', 'points': 10}\n", -"alien_2: Dict[Key, Value] = {'color': 'red', 'points': 15}\n", + "alien_0: Dict[Key, Value] = {'color': 'green', 'points': 5}\n", + "alien_1: Dict[Key, Value] = {'color': 'yellow', 'points': 10}\n", + "alien_2: Dict[Key, Value] = {'color': 'red', 'points': 15}\n", -"aliens:list[Dict[Key, Value]] = [alien_0, alien_1, alien_2]\n", -"for alien in aliens:\n", -" print(alien)", + "aliens:list[Dict[Key, Value]] = [alien_0, alien_1, alien_2]\n", + "for alien in aliens:\n", + " print(alien)", ] }, { From 53dac430adf8e42cfd4807c2f78bd11723e8f42e Mon Sep 17 00:00:00 2001 From: HaseebAliKhan <57507467+HaseebAliKhan@users.noreply.github.com> Date: Thu, 9 Nov 2023 06:21:28 +0500 Subject: [PATCH 3/4] Update class8.ipynb --- 08_class(dictionary)/class8.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/08_class(dictionary)/class8.ipynb b/08_class(dictionary)/class8.ipynb index ea38806..9fafcdf 100644 --- a/08_class(dictionary)/class8.ipynb +++ b/08_class(dictionary)/class8.ipynb @@ -585,7 +585,7 @@ "aliens:list[Dict[Key, Value]] = [alien_0, alien_1, alien_2]\n", "for alien in aliens:\n", - " print(alien)", + " print(alien)" ] }, { From 40e33802cc5623ca42c98470660a2693f0325979 Mon Sep 17 00:00:00 2001 From: HaseebAliKhan <57507467+HaseebAliKhan@users.noreply.github.com> Date: Thu, 9 Nov 2023 06:24:14 +0500 Subject: [PATCH 4/4] Update class8.ipynb --- 08_class(dictionary)/class8.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/08_class(dictionary)/class8.ipynb b/08_class(dictionary)/class8.ipynb index 9fafcdf..daa893c 100644 --- a/08_class(dictionary)/class8.ipynb +++ b/08_class(dictionary)/class8.ipynb @@ -582,7 +582,7 @@ "alien_0: Dict[Key, Value] = {'color': 'green', 'points': 5}\n", "alien_1: Dict[Key, Value] = {'color': 'yellow', 'points': 10}\n", "alien_2: Dict[Key, Value] = {'color': 'red', 'points': 15}\n", - + "\n", "aliens:list[Dict[Key, Value]] = [alien_0, alien_1, alien_2]\n", "for alien in aliens:\n", " print(alien)"