Skip to content

Commit 9e69bec

Browse files
committed
all files is reviewed
1 parent 34d641f commit 9e69bec

11 files changed

+21790
-1716
lines changed

.ipynb_checkpoints/Day1-checkpoint.ipynb

+2,862
Large diffs are not rendered by default.

.ipynb_checkpoints/Day2-checkpoint.ipynb

+1,107
Large diffs are not rendered by default.

.ipynb_checkpoints/Day3-checkpoint.ipynb

+2,507
Large diffs are not rendered by default.

.ipynb_checkpoints/Day4-checkpoint.ipynb

+1,402
Large diffs are not rendered by default.

.ipynb_checkpoints/Numpy-checkpoint.ipynb

+2,667
Large diffs are not rendered by default.

.ipynb_checkpoints/Pandas-checkpoint.ipynb

+9,929
Large diffs are not rendered by default.

Day3.ipynb

+15-3
Original file line numberDiff line numberDiff line change
@@ -1050,15 +1050,27 @@
10501050
},
10511051
{
10521052
"cell_type": "code",
1053-
"execution_count": 67,
1053+
"execution_count": 1,
10541054
"metadata": {
10551055
"colab": {},
10561056
"colab_type": "code",
10571057
"id": "GobxPk3fuWi2"
10581058
},
1059-
"outputs": [],
1059+
"outputs": [
1060+
{
1061+
"ename": "NameError",
1062+
"evalue": "name 'd2' is not defined",
1063+
"output_type": "error",
1064+
"traceback": [
1065+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
1066+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
1067+
"\u001b[1;32m<ipython-input-1-9ce9dbfa9305>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0md2\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"Global AI Hub\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
1068+
"\u001b[1;31mNameError\u001b[0m: name 'd2' is not defined"
1069+
]
1070+
}
1071+
],
10601072
"source": [
1061-
"d2.get(\"asli\")"
1073+
"d2.get(\"Global AI Hub\")"
10621074
]
10631075
},
10641076
{

Day4.ipynb

+13-56
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@
555555
},
556556
{
557557
"cell_type": "code",
558-
"execution_count": 51,
558+
"execution_count": 1,
559559
"metadata": {
560560
"colab": {},
561561
"colab_type": "code",
@@ -577,7 +577,7 @@
577577
},
578578
{
579579
"cell_type": "code",
580-
"execution_count": 52,
580+
"execution_count": 2,
581581
"metadata": {
582582
"colab": {},
583583
"colab_type": "code",
@@ -598,50 +598,7 @@
598598
},
599599
{
600600
"cell_type": "code",
601-
"execution_count": 57,
602-
"metadata": {
603-
"colab": {},
604-
"colab_type": "code",
605-
"id": "-b8t6CgSl3Yu"
606-
},
607-
"outputs": [
608-
{
609-
"name": "stdout",
610-
"output_type": "stream",
611-
"text": [
612-
"Factorial: 720\n",
613-
"None\n"
614-
]
615-
}
616-
],
617-
"source": [
618-
"x = factorial2(6)\n",
619-
"print(x)"
620-
]
621-
},
622-
{
623-
"cell_type": "code",
624-
"execution_count": 58,
625-
"metadata": {},
626-
"outputs": [
627-
{
628-
"data": {
629-
"text/plain": [
630-
"NoneType"
631-
]
632-
},
633-
"execution_count": 58,
634-
"metadata": {},
635-
"output_type": "execute_result"
636-
}
637-
],
638-
"source": [
639-
"type(x)"
640-
]
641-
},
642-
{
643-
"cell_type": "code",
644-
"execution_count": 62,
601+
"execution_count": 5,
645602
"metadata": {
646603
"colab": {},
647604
"colab_type": "code",
@@ -661,7 +618,7 @@
661618
},
662619
{
663620
"cell_type": "code",
664-
"execution_count": 65,
621+
"execution_count": 6,
665622
"metadata": {
666623
"colab": {},
667624
"colab_type": "code",
@@ -683,7 +640,7 @@
683640
},
684641
{
685642
"cell_type": "code",
686-
"execution_count": 66,
643+
"execution_count": 7,
687644
"metadata": {},
688645
"outputs": [
689646
{
@@ -692,7 +649,7 @@
692649
"720"
693650
]
694651
},
695-
"execution_count": 66,
652+
"execution_count": 7,
696653
"metadata": {},
697654
"output_type": "execute_result"
698655
}
@@ -703,7 +660,7 @@
703660
},
704661
{
705662
"cell_type": "code",
706-
"execution_count": 73,
663+
"execution_count": 8,
707664
"metadata": {
708665
"colab": {},
709666
"colab_type": "code",
@@ -720,7 +677,7 @@
720677
},
721678
{
722679
"cell_type": "code",
723-
"execution_count": 75,
680+
"execution_count": 9,
724681
"metadata": {
725682
"colab": {},
726683
"colab_type": "code",
@@ -741,7 +698,7 @@
741698
},
742699
{
743700
"cell_type": "code",
744-
"execution_count": 76,
701+
"execution_count": 10,
745702
"metadata": {
746703
"colab": {},
747704
"colab_type": "code",
@@ -762,7 +719,7 @@
762719
},
763720
{
764721
"cell_type": "code",
765-
"execution_count": 2,
722+
"execution_count": 11,
766723
"metadata": {},
767724
"outputs": [
768725
{
@@ -771,7 +728,7 @@
771728
"3"
772729
]
773730
},
774-
"execution_count": 2,
731+
"execution_count": 11,
775732
"metadata": {},
776733
"output_type": "execute_result"
777734
}
@@ -783,7 +740,7 @@
783740
},
784741
{
785742
"cell_type": "code",
786-
"execution_count": 3,
743+
"execution_count": 12,
787744
"metadata": {},
788745
"outputs": [
789746
{
@@ -792,7 +749,7 @@
792749
"'Full name: Guido Van Rossum'"
793750
]
794751
},
795-
"execution_count": 3,
752+
"execution_count": 12,
796753
"metadata": {},
797754
"output_type": "execute_result"
798755
}

Numpy.ipynb

+23-29
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@
761761
}
762762
],
763763
"source": [
764-
"#creating an empty array\n",
764+
"# It creates a series of randomly determined elements according to the state of the memory.\n",
765765
"\n",
766766
"s4 = np.empty((4,5))\n",
767767
"\n",
@@ -2035,21 +2035,22 @@
20352035
},
20362036
{
20372037
"cell_type": "code",
2038-
"execution_count": 175,
2038+
"execution_count": 2,
20392039
"metadata": {
20402040
"colab": {},
20412041
"colab_type": "code",
20422042
"id": "Y3mWYuRMTtp6"
20432043
},
20442044
"outputs": [
20452045
{
2046-
"name": "stdout",
2047-
"output_type": "stream",
2048-
"text": [
2049-
"[[ 6. 8.]\n",
2050-
" [10. 12.]]\n",
2051-
"[[ 6. 8.]\n",
2052-
" [10. 12.]]\n"
2046+
"ename": "NameError",
2047+
"evalue": "name 'np' is not defined",
2048+
"output_type": "error",
2049+
"traceback": [
2050+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
2051+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
2052+
"\u001b[1;32m<ipython-input-2-732c4c718d67>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mx\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0marray\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;36m2\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m3\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;36m4\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[1;33m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfloat64\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2\u001b[0m \u001b[0my\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0marray\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m5\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;36m6\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;36m7\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;36m8\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[1;33m=\u001b[0m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfloat64\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mx\u001b[0m\u001b[1;33m+\u001b[0m\u001b[0my\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
2053+
"\u001b[1;31mNameError\u001b[0m: name 'np' is not defined"
20532054
]
20542055
}
20552056
],
@@ -2065,21 +2066,22 @@
20652066
},
20662067
{
20672068
"cell_type": "code",
2068-
"execution_count": 176,
2069+
"execution_count": 3,
20692070
"metadata": {
20702071
"colab": {},
20712072
"colab_type": "code",
20722073
"id": "InoPX9IfT2TD"
20732074
},
20742075
"outputs": [
20752076
{
2076-
"name": "stdout",
2077-
"output_type": "stream",
2078-
"text": [
2079-
"[[-4. -4.]\n",
2080-
" [-4. -4.]]\n",
2081-
"[[-4. -4.]\n",
2082-
" [-4. -4.]]\n"
2077+
"ename": "NameError",
2078+
"evalue": "name 'x' is not defined",
2079+
"output_type": "error",
2080+
"traceback": [
2081+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
2082+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
2083+
"\u001b[1;32m<ipython-input-3-fb9c15d00e93>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mx\u001b[0m\u001b[1;33m-\u001b[0m\u001b[0my\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 2\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0msubtract\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mx\u001b[0m\u001b[1;33m,\u001b[0m\u001b[0my\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
2084+
"\u001b[1;31mNameError\u001b[0m: name 'x' is not defined"
20832085
]
20842086
}
20852087
],
@@ -2223,25 +2225,17 @@
22232225
},
22242226
{
22252227
"cell_type": "code",
2226-
"execution_count": 184,
2228+
"execution_count": null,
22272229
"metadata": {
22282230
"colab": {},
22292231
"colab_type": "code",
22302232
"id": "R6mLUA9lUbri"
22312233
},
2232-
"outputs": [
2233-
{
2234-
"name": "stdout",
2235-
"output_type": "stream",
2236-
"text": [
2237-
"[[5.45981500e+01 8.10308393e+03]\n",
2238-
" [8.88611052e+06 1.50609731e+35]]\n"
2239-
]
2240-
}
2241-
],
2234+
"outputs": [],
22422235
"source": [
2243-
"s = np.array([[4,9],[16,81]], dtype = np.float64)\n",
2236+
"#Calculate the exponential of all elements in the input array\n",
22442237
"\n",
2238+
"s = np.array([[4,9],[16,81]], dtype = np.float64)\n",
22452239
"print(np.exp(s))"
22462240
]
22472241
},

0 commit comments

Comments
 (0)