Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,263 changes: 1,862 additions & 401 deletions P1 Python Absolute Beginner/Module_1.0_Tutorials_START_HERE.ipynb

Large diffs are not rendered by default.

1,034 changes: 824 additions & 210 deletions P1 Python Absolute Beginner/Module_1.1_Practice.ipynb

Large diffs are not rendered by default.

50 changes: 35 additions & 15 deletions P1 Python Absolute Beginner/Module_1.2_Required_Code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"attachments": {},
"cell_type": "markdown",
"metadata": {
"collapsed": true
"collapsed": true,
"jupyter": {
"outputs_hidden": true
}
},
"source": [
"# P1M1: Module 1 Required Coding Activity \n",
Expand Down Expand Up @@ -33,25 +36,42 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stdin",
"output_type": "stream",
"text": [
"Names of people met in past 24 hours: Josh, Matt, Seth, jOhn\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"josh, matt, seth, john\n",
"John met? True\n",
"Matt met? True\n",
"Josh met? True\n",
"Seth met? True\n"
]
}
],
"source": [
"# Create name check code\n",
"\n",
"input_test = input(\"Names of people met in past 24 hours: \").lower()\n",
"# [ ] get input for input_test variable\n",
"\n",
"print(input_test)\n",
"# [ ] print \"True\" message if \"John\" is in the input or False message if not\n",
"\n",
"print(\"John met?\", \"john\" in input_test)\n",
"\n",
"# [ ] print True message if your name is in the input or False if not\n",
"\n",
"print(\"Matt met?\", \"matt\" in input_test)\n",
"\n",
"# [ ] Challenge: Check if another person's name is in the input - print message\n",
"\n",
"\n",
"print(\"Josh met?\", \"josh\" in input_test)\n",
"print(\"Seth met?\", \"seth\" in input_test)\n",
"# [ ] Challenge: Check if a fourth person's name is in the input - print message"
]
},
Expand All @@ -65,7 +85,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -79,9 +99,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.12.1"
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
Loading