From a96ff7ed57a33f4a3f3b5b1f620833eaf732b3be Mon Sep 17 00:00:00 2001 From: fikriguska Date: Tue, 1 Oct 2019 18:13:40 +0700 Subject: [PATCH 1/3] add base64 --- Python/helloBase64.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Python/helloBase64.py diff --git a/Python/helloBase64.py b/Python/helloBase64.py new file mode 100644 index 0000000..0f94635 --- /dev/null +++ b/Python/helloBase64.py @@ -0,0 +1,5 @@ +import base64 + +string = "SGVsbG8gV29ybGQhCg==" + +print(base64.b64decode(string).decode()) From b7cef510ae2c8ccb9acef320733b4dcf41d0616f Mon Sep 17 00:00:00 2001 From: fikriguska Date: Tue, 1 Oct 2019 18:23:19 +0700 Subject: [PATCH 2/3] add reverse --- Python/helloReverse.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Python/helloReverse.py diff --git a/Python/helloReverse.py b/Python/helloReverse.py new file mode 100644 index 0000000..2f1f44a --- /dev/null +++ b/Python/helloReverse.py @@ -0,0 +1,3 @@ +string = '!dlroW olleH' + +print(string[::-1]) From 61c5f4cfd3599fbc484ca88c7bb47104fcf4f6b7 Mon Sep 17 00:00:00 2001 From: fikriguska Date: Tue, 1 Oct 2019 18:57:51 +0700 Subject: [PATCH 3/3] add binary --- Python/helloBinary.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Python/helloBinary.py diff --git a/Python/helloBinary.py b/Python/helloBinary.py new file mode 100644 index 0000000..3a3e852 --- /dev/null +++ b/Python/helloBinary.py @@ -0,0 +1,4 @@ +arr = [0b1001000, 0b1100101, 0b1101100, 0b1101100, 0b1101111, 0b100000, 0b1010111, 0b1101111, 0b1110010, 0b1101100, 0b1100100, 0b100001] + +for i in arr: + print(chr(i), end='')