Skip to content

Commit 38f4d9d

Browse files
committed
MAP
1 parent d663ef6 commit 38f4d9d

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

HelloWorld.ipynb

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@
630630
},
631631
{
632632
"cell_type": "code",
633-
"execution_count": 64,
633+
"execution_count": 65,
634634
"metadata": {},
635635
"outputs": [
636636
{
@@ -644,6 +644,66 @@
644644
"source": [
645645
"myF(\"Soumya\")"
646646
]
647+
},
648+
{
649+
"cell_type": "code",
650+
"execution_count": 67,
651+
"metadata": {},
652+
"outputs": [
653+
{
654+
"ename": "NameError",
655+
"evalue": "name 'times3' is not defined",
656+
"output_type": "error",
657+
"traceback": [
658+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
659+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
660+
"\u001b[1;32m<ipython-input-67-ff86cb47bdde>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mtimes3\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m3\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
661+
"\u001b[1;31mNameError\u001b[0m: name 'times3' is not defined"
662+
]
663+
}
664+
],
665+
"source": [
666+
"times3(3)"
667+
]
668+
},
669+
{
670+
"cell_type": "code",
671+
"execution_count": 69,
672+
"metadata": {},
673+
"outputs": [],
674+
"source": [
675+
"def times3(var):\n",
676+
" return var**3"
677+
]
678+
},
679+
{
680+
"cell_type": "code",
681+
"execution_count": 71,
682+
"metadata": {},
683+
"outputs": [
684+
{
685+
"data": {
686+
"text/plain": [
687+
"729"
688+
]
689+
},
690+
"execution_count": 71,
691+
"metadata": {},
692+
"output_type": "execute_result"
693+
}
694+
],
695+
"source": [
696+
"times3(9)"
697+
]
698+
},
699+
{
700+
"cell_type": "code",
701+
"execution_count": null,
702+
"metadata": {},
703+
"outputs": [],
704+
"source": [
705+
"seq=[1,2,3,4,]"
706+
]
647707
}
648708
],
649709
"metadata": {

0 commit comments

Comments
 (0)