From 3019c54fc5e8a5124004c416d0865650786c42b0 Mon Sep 17 00:00:00 2001 From: sreeni2987 <48445200+sreeni2987@users.noreply.github.com> Date: Mon, 11 Mar 2019 21:04:24 +0530 Subject: [PATCH] Update Week_2_Part_1_Assignment.ipynb --- Week 2/Week_2_Part_1_Assignment.ipynb | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/Week 2/Week_2_Part_1_Assignment.ipynb b/Week 2/Week_2_Part_1_Assignment.ipynb index 765d90f..51dd423 100644 --- a/Week 2/Week_2_Part_1_Assignment.ipynb +++ b/Week 2/Week_2_Part_1_Assignment.ipynb @@ -44,9 +44,20 @@ "cell_type": "code", "source": [ "# 1.1 Type your answer here." + a=10 + b=2 + print(a+b) + print(a-b) + print(a*b) + print(a/b) + print(a%b) ], - "execution_count": 0, - "outputs": [] + "execution_count": 5, + "outputs": [12 +8 +20 +5.0 +0] }, { "metadata": { @@ -95,6 +106,11 @@ "cell_type": "code", "source": [ "# 3.1 Type your answer here" + a="Hello " + b ="World" + a+b + d[10:] + ], "execution_count": 0, "outputs": [] @@ -108,6 +124,8 @@ "cell_type": "code", "source": [ "# 3.2 Type your answer here" + c="welcome" + c.upper() ], "execution_count": 0, "outputs": [] @@ -121,6 +139,8 @@ "cell_type": "code", "source": [ "# 3.3 Type your answer here" + d="school of ai" + d.split() ], "execution_count": 0, "outputs": [] @@ -283,4 +303,4 @@ "outputs": [] } ] -} \ No newline at end of file +}