livepython.net

12. Python Program to Print a Console Dashboard

HardTriple quotes

Overview

This challenge tests your ability to use special escape sequences in Python to create a console-based dashboard. You'll learn how to incorporate box-drawing characters, tab escape sequences, and special symbols to enhance the visual presentation of console output.

Task

Write a Python program that prints a LivePython Dashboard with system metrics displayed inside a neatly formatted box.

Expected Output

Your program should produce the following structured dashboard:

╔═══════════════════════════════╗
║ LivePython Dashboard ║
╠═══════════════════════════════╣
║ Server Status : 🟢 Online ║
║ Active Users : 120 ║
║ CPU Usage : 78% ████████ ║
║ Memory Usage : 65% ██████ ║
║ Disk Space : 90% █████████ ║
╚═══════════════════════════════╝

Input

  • No user input is required.

Output

  • A console-based dashboard displaying system metrics in a visually structured format.

╔═══════════════════════════════╗
║ LivePython Dashboard ║
╠═══════════════════════════════╣
║ Server Status : 🟢 Online ║
║ Active Users : 120 ║
║ CPU Usage : 78% ████████ ║
║ Memory Usage : 65% ██████ ║
║ Disk Space : 90% █████████ ║
╚═══════════════════════════════╝

By completing this challenge, you'll improve your ability to create visually appealing and well-structured console outputs!

Learn this firstChapter 2 · Triple Quotes in Python: Multi-Line Strings
solution.py
# write your code here

EXPECTED OUTPUT

1╔═══════════════════════════════╗
2║ LivePython Dashboard ║
3╠═══════════════════════════════╣
4║ Server Status : 🟢 Online ║
5║ Active Users : 120 ║
6║ CPU Usage : 78% ████████ ║
7║ Memory Usage : 65% ██████ ║
8║ Disk Space : 90% █████████ ║
9╚═══════════════════════════════╝

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.