input: from typing import List
  
  def install_python(version: str) -> str:
      """Construct a Bash script that installs the given Python version.
      The script should download the specified version from the official Python website,
      extract it, and then compile and install it.
      Example:
      >>> install_python("3.8.5")
      '#!/bin/bash\\n\\n# Download latest version of Python\\ncurl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz\\n\\n# Extract the tgz file\\ntar -xzf Python-3.8.5.tgz\\n\\n# Move into the Python directory\\ncd Python-3.8.5\\n\\n# Run the configure script\\n./configure\\n\\n# Compile and install\\nmake\\nmake install'
      """
output:     script = f"""#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/{version}/Python-{version}.tgz
  
  # Extract the tgz file
  tar -xzf Python-{version}.tgz
  
  # Move into the Python directory
  cd Python-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
      return script