1n = 3
2for i in range(1, n+1):
3 print(f"{' '*(n-i)}{' *'*i}"[1:])
4
5# Output:
6# *
7# * *
8#* * *
1# install pyramid (basic, if path is not set yet)
2py -m pip install pyramid
3# or set PATH to use pip:
4setx PATH "%PATH%;C:\<path\to\python\directory\>\Scripts"
5pip install pyramid
6# or
7pip3 install pyramid --upgrade
8# if "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed" [!]:
9py -m pip install --trusted-host pypi.python.org pip pyramid
10# if PermissionError: [WinError 5] Access is denied
11py -m pip install --user pyramid
12# or via creating a virtual environment venv:
13py -m venv c:\path\to\new\environment
14# then execute:
15c:\path\to\new\environment\Scripts\activate.bat