From 66c9f833a6afacfc9663fd44a3f8d594df8ab791 Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Sun, 25 Jun 2023 21:59:47 +0300 Subject: [PATCH] Modified the way shifted radices are printed for readability. --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7fbf729..b7d425e 100644 --- a/main.py +++ b/main.py @@ -3,11 +3,14 @@ from bitutilities import * if __name__ == '__main__': reg: BasicRegister = BasicRegister(get_memory("memory")) + # print(type(reg)) print(reg) - print(reg.left_shift()) + print() + print([int(value) for value in reg.left_shift()]) print(reg) - print(reg.right_shift()) + print() + print([int(value) for value in reg.right_shift()]) print(reg)