mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
04/ex2
This commit is contained in:
21
04/ex2/ft_stream_management.py
Normal file
21
04/ex2/ft_stream_management.py
Normal file
@@ -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()
|
||||
Reference in New Issue
Block a user