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.
14 lines
405 B
14 lines
405 B
2 years ago
|
#!/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)
|