Skip to content

Commit 30bdccf

Browse files
committed
Created using Colab
1 parent 064d604 commit 30bdccf

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Problem_6.ipynb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"private_outputs": true,
77
"provenance": [],
8-
"authorship_tag": "ABX9TyPjVCshuGtA9JM+PpXq0+L5",
8+
"authorship_tag": "ABX9TyNlejfLgXR3ydBULQck2neN",
99
"include_colab_link": true
1010
},
1111
"kernelspec": {
@@ -34,7 +34,19 @@
3434
"id": "1NEmyPUVZ9Jh"
3535
},
3636
"outputs": [],
37-
"source": []
37+
"source": [
38+
"# Call the function with the name \"Alice\"\n",
39+
"greet(\"Alice\")\n",
40+
"\n",
41+
"# Define a function named greet that takes a name as input\n",
42+
"def greet(name):\n",
43+
" \"\"\"\n",
44+
" This function greets the person passed in as a parameter.\n",
45+
" \"\"\"\n",
46+
" print(\"Hello, \" + name + \"!\")\n",
47+
"\n",
48+
"\n"
49+
]
3850
}
3951
]
4052
}

0 commit comments

Comments
 (0)