From 4f870ff33869451f9abb60c08f1c223c77d97aa9 Mon Sep 17 00:00:00 2001 From: Mayank SIngh <30663174+pk0011@users.noreply.github.com> Date: Fri, 2 Oct 2020 11:31:45 +0530 Subject: [PATCH] Update 02_datatypes.py This makes more sense now, as python is a scripting language it consider every input as string. --- src/02_datatypes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/02_datatypes.py b/src/02_datatypes.py index 245193da34..2616afed41 100644 --- a/src/02_datatypes.py +++ b/src/02_datatypes.py @@ -6,6 +6,8 @@ Note that if you try running the following code without making any changes, you'll get a TypeError saying you can't perform an operation on a string and an integer. + +In python every input is considered as a string, by default. So, one has nto specify that the datatype of input value. """ x = 5 @@ -18,4 +20,4 @@ # Write a print statement that combines x + y into the string value 57 -# YOUR CODE HERE \ No newline at end of file +# YOUR CODE HERE