-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello_world.py
33 lines (25 loc) · 2.17 KB
/
hello_world.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import sys
from importlib.metadata import version
def print_hello_world_ascii():
ascii_art = """
██░ ██ ▓█████ ██▓ ██▓ ▒█████ █ █░ ▒█████ ██▀███ ██▓ ▓█████▄
▓██░ ██▒▓█ ▀ ▓██▒ ▓██▒ ▒██▒ ██▒ ▓█░ █ ░█░▒██▒ ██▒▓██ ▒ ██▒▓██▒ ▒██▀ ██▌
▒██▀▀██░▒███ ▒██░ ▒██░ ▒██░ ██▒ ▒█░ █ ░█ ▒██░ ██▒▓██ ░▄█ ▒▒██░ ░██ █▌
░▓█ ░██ ▒▓█ ▄ ▒██░ ▒██░ ▒██ ██░ ░█░ █ ░█ ▒██ ██░▒██▀▀█▄ ▒██░ ░▓█▄ ▌
░▓█▒░██▓░▒████▒░██████▒░██████▒░ ████▓▒░ ░░██▒██▓ ░ ████▓▒░░██▓ ▒██▒░██████▒░▒████▓
▒ ░░▒░▒░░ ▒░ ░░ ▒░▓ ░░ ▒░▓ ░░ ▒░▒░▒░ ░ ▓░▒ ▒ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░ ▒░▓ ░ ▒▒▓ ▒
▒ ░▒░ ░ ░ ░ ░░ ░ ▒ ░░ ░ ▒ ░ ░ ▒ ▒░ ▒ ░ ░ ░ ▒ ▒░ ░▒ ░ ▒░░ ░ ▒ ░ ░ ▒ ▒
░ ░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
"""
print(ascii_art)
def print_python_version():
version = sys.version.split()[0] # Get only the version number
print(f"Current Python version: {version}")
def print_pip_version():
pip_version = version("pip")
print(f"Current pip version: {pip_version}")
print_hello_world_ascii()
print_python_version()
print_pip_version()