We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FEAT
1 parent b66907a commit 57b6cf9Copy full SHA for 57b6cf9
main.py
@@ -20,13 +20,37 @@ def to_binary_string(n: int) -> str:
20
# ---------------------------------------------------------------------------------------------------------
21
22
23
+def print_two_dm_boolean_array(the_array: [[bool]]) -> None:
24
+ for row in the_array:
25
+ for col in row:
26
+ if col:
27
+ print("* ", end="")
28
+
29
+ else:
30
+ print(" ", end="")
31
32
+ print()
33
34
35
+# ---------------------------------------------------------------------------------------------------------
36
37
38
def main():
39
"""For testing"""
40
test_x: float = 0.1
41
test_y: float = 0.5
42
43
+ test_two_dm_boolean_array = [
44
+ [True, False],
45
+ [False, True],
46
+ [True, False]
47
+ ]
48
49
print(is_between_zero_and_one(test_x, test_y))
50
print(to_binary_string(8))
51
52
53
+ print_two_dm_boolean_array(test_two_dm_boolean_array)
54
55
56
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments