You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
405 B
13 lines
405 B
#!/usr/bin/env python3 |
|
import platform |
|
import textwrap |
|
import os |
|
|
|
language = f"Python {platform.python_version()}" |
|
operating_system = f"{platform.system()} {platform.release()}" |
|
machine = f"a system with a(n) {platform.processor()} processor" |
|
|
|
message = f"You are running {language} on {operating_system} on {machine}." |
|
|
|
for line in textwrap.wrap(message, os.get_terminal_size().columns): |
|
print(line)
|
|
|