From f508ca51c8f05d4044df4e26c9ca23b41b95a45a Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Sun, 25 Jun 2023 22:32:34 +0300 Subject: [PATCH] Modified prints for readability (again). --- main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b7d425e..1e06d59 100644 --- a/main.py +++ b/main.py @@ -1,16 +1,22 @@ from bitutilities import * +import timeit if __name__ == '__main__': reg: BasicRegister = BasicRegister(get_memory("memory")) # print(type(reg)) + print("\nRegister:") print(reg) - print() + print("\nReversed:") + reg.reverse() + print(reg) + + print("\nShifted left:") print([int(value) for value in reg.left_shift()]) print(reg) - print() + print("\nShifted right:") print([int(value) for value in reg.right_shift()]) print(reg)