From baa591e8d04546b73581126bf67fc52342889e24 Mon Sep 17 00:00:00 2001 From: gajanan badge <72186802+gajubadge11@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:38:03 +0530 Subject: [PATCH 1/2] Update 010. String Formatting.py --- Python/03. Strings/010. String Formatting.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Python/03. Strings/010. String Formatting.py b/Python/03. Strings/010. String Formatting.py index bb1ad3b..2d0b1e1 100644 --- a/Python/03. Strings/010. String Formatting.py +++ b/Python/03. Strings/010. String Formatting.py @@ -6,3 +6,8 @@ def print_formatted(number): width = len("{0:b}".format(number)) for i in range(1, number + 1): print("{0:{width}d} {0:{width}o} {0:{width}X} {0:{width}b}".format(i, width=width)) + + +if __name__ == '__main__': + n = int(input()) + print_formatted(n) From a329e65d75a881913c8ebdbd5346c7950bbc908a Mon Sep 17 00:00:00 2001 From: gajanan badge <72186802+gajubadge11@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:55:47 +0530 Subject: [PATCH 2/2] Update 009. Set symmetric_difference() Operation.py --- .../04. Sets/009. Set symmetric_difference() Operation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/04. Sets/009. Set symmetric_difference() Operation.py b/Python/04. Sets/009. Set symmetric_difference() Operation.py index a4f3134..7a2302e 100644 --- a/Python/04. Sets/009. Set symmetric_difference() Operation.py +++ b/Python/04. Sets/009. Set symmetric_difference() Operation.py @@ -2,6 +2,6 @@ # Score: 10 -_, a = input(), set(input().split()) -_, b = input(), set(input().split()) -print(len(a.symmetric_difference(b))) +_, english = input(), set(input().split()) +_, french = input(), set(input().split()) +print(len(english.symmetric_difference(french)))