From 184077bf35b7f6514bef0944d74ef0436f6880ef Mon Sep 17 00:00:00 2001 From: "Mohd. Maaz Khan" Date: Sun, 14 Oct 2018 11:09:47 +0530 Subject: [PATCH 1/3] Create Differences in Python 2 and Python 3 --- Differences in Python 2 and Python 3 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Differences in Python 2 and Python 3 diff --git a/Differences in Python 2 and Python 3 b/Differences in Python 2 and Python 3 new file mode 100644 index 0000000..5a85efd --- /dev/null +++ b/Differences in Python 2 and Python 3 @@ -0,0 +1,11 @@ +##Differences Between Python 2 and Python 3 + +|Sn|Python 2|Python 3| +|:-|:-------|:-------| +|1|print function brackets optional.|print() function brackets necessary.| +|2|Prefix the string with u to make Unicode String. Ex: u"hello world"| String is Unicode by default.| +|3|Division of integers always return integer.|Division of integers return double answer, if required.| +|4|raw_input() reads string|raw_input() not available and not required. Every input is string.| +|5|input() evaluates data read.|input() always reads string.| +|6||as keyword| +|7|Going next value in a generator. Syntax: generator.next()|Going next value in a generator. Syntax: next(generator)| From ebe0cf4c94d579adbb4f960a5e1f2fbff5e74aed Mon Sep 17 00:00:00 2001 From: "Mohd. Maaz Khan" Date: Sun, 14 Oct 2018 11:24:17 +0530 Subject: [PATCH 2/3] Rename Differences in Python 2 and Python 3 to Differences in Python 2 and Python 3.md --- ...thon 2 and Python 3 => Differences in Python 2 and Python 3.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Differences in Python 2 and Python 3 => Differences in Python 2 and Python 3.md (100%) diff --git a/Differences in Python 2 and Python 3 b/Differences in Python 2 and Python 3.md similarity index 100% rename from Differences in Python 2 and Python 3 rename to Differences in Python 2 and Python 3.md From afb21d3c628ef42ca8125a7a3d6cde34523fb4bd Mon Sep 17 00:00:00 2001 From: "Mohd. Maaz Khan" Date: Sun, 14 Oct 2018 11:25:19 +0530 Subject: [PATCH 3/3] Update Differences in Python 2 and Python 3.md --- Differences in Python 2 and Python 3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Differences in Python 2 and Python 3.md b/Differences in Python 2 and Python 3.md index 5a85efd..4afa887 100644 --- a/Differences in Python 2 and Python 3.md +++ b/Differences in Python 2 and Python 3.md @@ -1,4 +1,4 @@ -##Differences Between Python 2 and Python 3 +## Differences Between Python 2 and Python 3 |Sn|Python 2|Python 3| |:-|:-------|:-------|