From e06459f4b91513db2f673c23943c290c257a509c Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Mon, 25 Jan 2021 06:02:49 +0900 Subject: [PATCH 01/14] Create first-post --- source/first-post | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 source/first-post diff --git a/source/first-post b/source/first-post new file mode 100644 index 00000000..34106fed --- /dev/null +++ b/source/first-post @@ -0,0 +1,6 @@ +--- +title: はじめての記事 +date: 2019-06-19 +tags: ["サンプル", "チュートリアル"] +excerpt: これは抜粋です。 +--- From c4262871d94b72290bf6d5023c0c5f0c1c9b9576 Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Mon, 25 Jan 2021 06:06:31 +0900 Subject: [PATCH 02/14] Delete first-post --- source/first-post | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 source/first-post diff --git a/source/first-post b/source/first-post deleted file mode 100644 index 34106fed..00000000 --- a/source/first-post +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: はじめての記事 -date: 2019-06-19 -tags: ["サンプル", "チュートリアル"] -excerpt: これは抜粋です。 ---- From bf5fabf1cbd1781ad3201f8b4392e72f7e291e2d Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Mon, 25 Jan 2021 06:29:28 +0900 Subject: [PATCH 03/14] Create 2021-01-25-first-post.md --- source/2021-01-25-first-post.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/2021-01-25-first-post.md diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md new file mode 100644 index 00000000..a2d66f18 --- /dev/null +++ b/source/2021-01-25-first-post.md @@ -0,0 +1,18 @@ +title: 6歳にウケるPython +date: 2021-01-25 +tags: ["Physon", "初投稿"] + +6歳にウケるPythonのコードを紹介します + +```physon +r = input('すうじをいれてね(0~2):') + +print(r) + +if (r == '0') or (r == '1') or (r == '2'): + print ('いいすうじですね!') +else: + print ('すうじは、0,1,2のどれかにしてね') +``` + +お子さんの好きな数字を聞いて、書き換えてあげましょう From 94eb6baf6d214331cf98dc0394194c216aa1cb64 Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Mon, 25 Jan 2021 06:40:00 +0900 Subject: [PATCH 04/14] Update 2021-01-25-first-post.md --- source/2021-01-25-first-post.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md index a2d66f18..08b48a24 100644 --- a/source/2021-01-25-first-post.md +++ b/source/2021-01-25-first-post.md @@ -2,6 +2,12 @@ title: 6歳にウケるPython date: 2021-01-25 tags: ["Physon", "初投稿"] +```physon + +print('こんにちは、世界') + +``` + 6歳にウケるPythonのコードを紹介します ```physon From d31b3bc1b7ad3e1ef96bf434ba3167985a80ec87 Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Mon, 25 Jan 2021 06:42:14 +0900 Subject: [PATCH 05/14] Update 2021-01-25-first-post.md --- source/2021-01-25-first-post.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md index 08b48a24..574026b9 100644 --- a/source/2021-01-25-first-post.md +++ b/source/2021-01-25-first-post.md @@ -2,9 +2,11 @@ title: 6歳にウケるPython date: 2021-01-25 tags: ["Physon", "初投稿"] +はじめに言葉ありき + ```physon -print('こんにちは、世界') +print('Hello Python!') ``` From 467d275d7585b31f6950d26e22bf46dfa7b27fc3 Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Fri, 29 Jan 2021 12:43:20 -0900 Subject: [PATCH 06/14] Update 2021-01-25-first-post.md --- source/2021-01-25-first-post.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md index 574026b9..0de0565c 100644 --- a/source/2021-01-25-first-post.md +++ b/source/2021-01-25-first-post.md @@ -24,3 +24,19 @@ else: ``` お子さんの好きな数字を聞いて、書き換えてあげましょう + + +※ハイライターのrunボタンが出ないため、他言語でテスト + +```javascript + +console.log('Hello Javascript!'); + +``` + +syntax highlighting: +​```ruby +require 'redcarpet' +markdown = Redcarpet.new("Hello World!") +puts markdown.to_html +​``` From b4707fc2f46182ab5d10d35e652d9b1dc8aaca3f Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Fri, 29 Jan 2021 12:50:57 -0900 Subject: [PATCH 07/14] Update 2021-01-25-first-post.md --- source/2021-01-25-first-post.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md index 0de0565c..d9fff54a 100644 --- a/source/2021-01-25-first-post.md +++ b/source/2021-01-25-first-post.md @@ -34,9 +34,8 @@ console.log('Hello Javascript!'); ``` -syntax highlighting: -​```ruby -require 'redcarpet' -markdown = Redcarpet.new("Hello World!") -puts markdown.to_html -​``` +```ruby + +puts "Hi. I am Ruby." + +``` From dc5dcacf68711587173388b8617d410d2c2eb60c Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Fri, 29 Jan 2021 12:54:30 -0900 Subject: [PATCH 08/14] Update 2021-01-25-first-post.md --- source/2021-01-25-first-post.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md index d9fff54a..0645a54f 100644 --- a/source/2021-01-25-first-post.md +++ b/source/2021-01-25-first-post.md @@ -23,6 +23,19 @@ else: print ('すうじは、0,1,2のどれかにしてね') ``` +```PYTHON + +r = input('すうじをいれてね(0~2):') + +print(r) + +if (r == '0') or (r == '1') or (r == '2'): + print ('いいすうじですね!') +else: + print ('すうじは、0,1,2のどれかにしてね') + +``` + お子さんの好きな数字を聞いて、書き換えてあげましょう From 7afaf706e6d54a7183d08e931fc4988cd15eb521 Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Sun, 7 Feb 2021 06:44:23 +0900 Subject: [PATCH 09/14] Update 2021-01-25-first-post.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pythonスペルミス修正、参考記事のリンク追加 --- source/2021-01-25-first-post.md | 35 ++++++++------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/source/2021-01-25-first-post.md b/source/2021-01-25-first-post.md index 0645a54f..8ab1fd7e 100644 --- a/source/2021-01-25-first-post.md +++ b/source/2021-01-25-first-post.md @@ -1,10 +1,13 @@ title: 6歳にウケるPython date: 2021-01-25 -tags: ["Physon", "初投稿"] +tags: ["Python", "初投稿"] -はじめに言葉ありき +Gitpressでは、Code-knackという機能で、コードの実行ボタン付きのシンタックスハイライトが使えます +Code Pen に似ていますね -```physon +とりあえずハロワから試してみましょう + +```python print('Hello Python!') @@ -12,17 +15,6 @@ print('Hello Python!') 6歳にウケるPythonのコードを紹介します -```physon -r = input('すうじをいれてね(0~2):') - -print(r) - -if (r == '0') or (r == '1') or (r == '2'): - print ('いいすうじですね!') -else: - print ('すうじは、0,1,2のどれかにしてね') -``` - ```PYTHON r = input('すうじをいれてね(0~2):') @@ -39,16 +31,5 @@ else: お子さんの好きな数字を聞いて、書き換えてあげましょう -※ハイライターのrunボタンが出ないため、他言語でテスト - -```javascript - -console.log('Hello Javascript!'); - -``` - -```ruby - -puts "Hi. I am Ruby." - -``` +参考記事: [【Web】Gitpressが凄い!いろんなコードを動かせる記事がかけるんだ Code-knakが凄いのか!?【Git】] +(https://tom2rd.sakura.ne.jp/wp/2019/06/20/post-9425/) From b37b23cb1ecb751eb48be0048dab0811a42dad6e Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Thu, 11 Mar 2021 07:16:39 +0900 Subject: [PATCH 10/14] Add new repo --- ...53\343\201\252\345\256\237\350\243\205.md" | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 "source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" diff --git "a/source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" "b/source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" new file mode 100644 index 00000000..890ec64e --- /dev/null +++ "b/source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" @@ -0,0 +1,73 @@ +誰が要るのか知らないけれど +やってみるとちょっとおもしろい +論理演算のシンプルな実装です + + + +論理和(AND) +```python +def AND(x, y): + return bool(x and y) + +print(AND(0,0)) +print(AND(0,1)) +print(AND(1,0)) +print(AND(1,1)) +``` + +否定論理和(NAND) +```python +def NAND(x, y): + return bool(not x or not y) + +print(NAND(0,0)) +print(NAND(0,1)) +print(NAND(1,0)) +print(NAND(1,1)) + +#演算子がand →orに変化 +``` + +論理和(OR) +```python +def OR(x, y): + return bool(x or y) + +print(OR(0,0)) +print(OR(0,1)) +print(OR(1,0)) +print(OR(1,1)) +``` + +否定論理和(NOR) +```python +def NOR(x, y): + return bool(not x and not y) + +print(NOR(0,0)) +print(NOR(0,1)) +print(NOR(1,0)) +print(NOR(1,1)) + +#演算子がor →andに変化 +``` + +排他的論理和(XOR) +```python +def XOR(x, y): + return bool((x and not y) or (not x and y)) + +print(XOR(0,0)) +print(XOR(0,1)) +print(XOR(1,0)) +print(XOR(1,1)) +``` + +否定(NOT) +```python +def NOT(x): + return bool(not x) + +print(NOT(0)) +print(NOT(1)) +``` \ No newline at end of file From 3dfb48532eb7e19784c826fda6c47315ca7c0be4 Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Thu, 11 Mar 2021 09:00:49 +0900 Subject: [PATCH 11/14] =?UTF-8?q?Create=20=E8=AB=96=E7=90=86=E6=BC=94?= =?UTF-8?q?=E7=AE=97=E3=81=AE=E3=82=B7=E3=83=B3=E3=83=97=E3=83=AB=E3=81=AA?= =?UTF-8?q?=E5=AE=9F=E8=A3=85.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...53\343\201\252\345\256\237\350\243\205.md" | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 "\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" diff --git "a/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" "b/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" new file mode 100644 index 00000000..b46aea1a --- /dev/null +++ "b/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" @@ -0,0 +1,73 @@ +誰が要るのか知らないけれど +やってみるとちょっとおもしろい +論理演算のシンプルな実装です + + + +論理和(AND) +```python +def AND(x, y): + return bool(x and y) + +print(AND(0,0)) +print(AND(0,1)) +print(AND(1,0)) +print(AND(1,1)) +``` + +否定論理和(NAND) +```python +def NAND(x, y): + return bool(not x or not y) + +print(NAND(0,0)) +print(NAND(0,1)) +print(NAND(1,0)) +print(NAND(1,1)) + +#演算子がand →orに変化 +``` + +論理和(OR) +```python +def OR(x, y): + return bool(x or y) + +print(OR(0,0)) +print(OR(0,1)) +print(OR(1,0)) +print(OR(1,1)) +``` + +否定論理和(NOR) +```python +def NOR(x, y): + return bool(not x and not y) + +print(NOR(0,0)) +print(NOR(0,1)) +print(NOR(1,0)) +print(NOR(1,1)) + +#演算子がor →andに変化 +``` + +排他的論理和(XOR) +```python +def XOR(x, y): + return bool((x and not y) or (not x and y)) + +print(XOR(0,0)) +print(XOR(0,1)) +print(XOR(1,0)) +print(XOR(1,1)) +``` + +否定(NOT) +```python +def NOT(x): + return bool(not x) + +print(NOT(0)) +print(NOT(1)) +``` From 19a4e167a51701a289106c010574ec710e6265ca Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Thu, 11 Mar 2021 09:01:31 +0900 Subject: [PATCH 12/14] =?UTF-8?q?Delete=20=E8=AB=96=E7=90=86=E6=BC=94?= =?UTF-8?q?=E7=AE=97=E3=81=AE=E3=82=B7=E3=83=B3=E3=83=97=E3=83=AB=E3=81=AA?= =?UTF-8?q?=E5=AE=9F=E8=A3=85.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...53\343\201\252\345\256\237\350\243\205.md" | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 "\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" diff --git "a/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" "b/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" deleted file mode 100644 index b46aea1a..00000000 --- "a/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" +++ /dev/null @@ -1,73 +0,0 @@ -誰が要るのか知らないけれど -やってみるとちょっとおもしろい -論理演算のシンプルな実装です - - - -論理和(AND) -```python -def AND(x, y): - return bool(x and y) - -print(AND(0,0)) -print(AND(0,1)) -print(AND(1,0)) -print(AND(1,1)) -``` - -否定論理和(NAND) -```python -def NAND(x, y): - return bool(not x or not y) - -print(NAND(0,0)) -print(NAND(0,1)) -print(NAND(1,0)) -print(NAND(1,1)) - -#演算子がand →orに変化 -``` - -論理和(OR) -```python -def OR(x, y): - return bool(x or y) - -print(OR(0,0)) -print(OR(0,1)) -print(OR(1,0)) -print(OR(1,1)) -``` - -否定論理和(NOR) -```python -def NOR(x, y): - return bool(not x and not y) - -print(NOR(0,0)) -print(NOR(0,1)) -print(NOR(1,0)) -print(NOR(1,1)) - -#演算子がor →andに変化 -``` - -排他的論理和(XOR) -```python -def XOR(x, y): - return bool((x and not y) or (not x and y)) - -print(XOR(0,0)) -print(XOR(0,1)) -print(XOR(1,0)) -print(XOR(1,1)) -``` - -否定(NOT) -```python -def NOT(x): - return bool(not x) - -print(NOT(0)) -print(NOT(1)) -``` From fc23493d2315baca85e123438192103f76fbb50a Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Thu, 11 Mar 2021 09:02:29 +0900 Subject: [PATCH 13/14] =?UTF-8?q?Create=20Python=E3=81=AB=E3=82=88?= =?UTF-8?q?=E3=82=8B=E8=AB=96=E7=90=86=E6=BC=94=E7=AE=97=E3=81=AE=E3=82=B7?= =?UTF-8?q?=E3=83=B3=E3=83=97=E3=83=AB=E3=81=AA=E5=AE=9F=E8=A3=85.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...53\343\201\252\345\256\237\350\243\205.md" | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 "source/Python\343\201\253\343\202\210\343\202\213\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" diff --git "a/source/Python\343\201\253\343\202\210\343\202\213\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" "b/source/Python\343\201\253\343\202\210\343\202\213\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" new file mode 100644 index 00000000..b46aea1a --- /dev/null +++ "b/source/Python\343\201\253\343\202\210\343\202\213\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" @@ -0,0 +1,73 @@ +誰が要るのか知らないけれど +やってみるとちょっとおもしろい +論理演算のシンプルな実装です + + + +論理和(AND) +```python +def AND(x, y): + return bool(x and y) + +print(AND(0,0)) +print(AND(0,1)) +print(AND(1,0)) +print(AND(1,1)) +``` + +否定論理和(NAND) +```python +def NAND(x, y): + return bool(not x or not y) + +print(NAND(0,0)) +print(NAND(0,1)) +print(NAND(1,0)) +print(NAND(1,1)) + +#演算子がand →orに変化 +``` + +論理和(OR) +```python +def OR(x, y): + return bool(x or y) + +print(OR(0,0)) +print(OR(0,1)) +print(OR(1,0)) +print(OR(1,1)) +``` + +否定論理和(NOR) +```python +def NOR(x, y): + return bool(not x and not y) + +print(NOR(0,0)) +print(NOR(0,1)) +print(NOR(1,0)) +print(NOR(1,1)) + +#演算子がor →andに変化 +``` + +排他的論理和(XOR) +```python +def XOR(x, y): + return bool((x and not y) or (not x and y)) + +print(XOR(0,0)) +print(XOR(0,1)) +print(XOR(1,0)) +print(XOR(1,1)) +``` + +否定(NOT) +```python +def NOT(x): + return bool(not x) + +print(NOT(0)) +print(NOT(1)) +``` From 50ab8ffc29419c1f8deedb104687eb946de141fb Mon Sep 17 00:00:00 2001 From: hinata <69482615+hinata-rand@users.noreply.github.com> Date: Thu, 11 Mar 2021 14:12:14 +0900 Subject: [PATCH 14/14] =?UTF-8?q?Delete=20=E8=AB=96=E7=90=86=E6=BC=94?= =?UTF-8?q?=E7=AE=97=E3=81=AE=E3=82=B7=E3=83=B3=E3=83=97=E3=83=AB=E3=81=AA?= =?UTF-8?q?=E5=AE=9F=E8=A3=85.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...53\343\201\252\345\256\237\350\243\205.md" | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 "source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" diff --git "a/source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" "b/source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" deleted file mode 100644 index 890ec64e..00000000 --- "a/source/\350\253\226\347\220\206\346\274\224\347\256\227\343\201\256\343\202\267\343\203\263\343\203\227\343\203\253\343\201\252\345\256\237\350\243\205.md" +++ /dev/null @@ -1,73 +0,0 @@ -誰が要るのか知らないけれど -やってみるとちょっとおもしろい -論理演算のシンプルな実装です - - - -論理和(AND) -```python -def AND(x, y): - return bool(x and y) - -print(AND(0,0)) -print(AND(0,1)) -print(AND(1,0)) -print(AND(1,1)) -``` - -否定論理和(NAND) -```python -def NAND(x, y): - return bool(not x or not y) - -print(NAND(0,0)) -print(NAND(0,1)) -print(NAND(1,0)) -print(NAND(1,1)) - -#演算子がand →orに変化 -``` - -論理和(OR) -```python -def OR(x, y): - return bool(x or y) - -print(OR(0,0)) -print(OR(0,1)) -print(OR(1,0)) -print(OR(1,1)) -``` - -否定論理和(NOR) -```python -def NOR(x, y): - return bool(not x and not y) - -print(NOR(0,0)) -print(NOR(0,1)) -print(NOR(1,0)) -print(NOR(1,1)) - -#演算子がor →andに変化 -``` - -排他的論理和(XOR) -```python -def XOR(x, y): - return bool((x and not y) or (not x and y)) - -print(XOR(0,0)) -print(XOR(0,1)) -print(XOR(1,0)) -print(XOR(1,1)) -``` - -否定(NOT) -```python -def NOT(x): - return bool(not x) - -print(NOT(0)) -print(NOT(1)) -``` \ No newline at end of file