From ae3ae15fdbcb799d26ff77d3bd590c1d22450c9e Mon Sep 17 00:00:00 2001 From: David GAILLETON Date: Mon, 9 Feb 2026 13:21:55 +0100 Subject: [PATCH] 04/ex2 --- 04/ex2/ft_stream_management.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 04/ex2/ft_stream_management.py diff --git a/04/ex2/ft_stream_management.py b/04/ex2/ft_stream_management.py new file mode 100644 index 0000000..3f9d33a --- /dev/null +++ b/04/ex2/ft_stream_management.py @@ -0,0 +1,21 @@ +import sys + + +def communication_system() -> None: + print("=== CYBER ARCHIVES - COMMUNICATION SYSTEM ===") + sys.stdout.write("\nInput Stream active. Enter archivist ID: ") + archivist_id = input() + sys.stdout.write("Input Stream active. Enter status report: ") + status_report = input() + sys.stdout.write( + f"\n[STANDARD] Archive status from {archivist_id}: {status_report}\n" + ) + sys.stderr.write( + "[ALERT] System diagnostic: Communication channels verified\n" + ) + sys.stdout.write("[STANDARD] Data transmission complete\n") + print("\nThree-channel communication test successful.") + + +if __name__ == "__main__": + communication_system()