input: def install_software(version: str) -> str:
      """Construct a Bash script to install a given software version.
      >>> install_software('Python 3.8.5')
      #!/bin/bash\\n# Download latest version of Python\\n curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz\\n# Extract the tgz file\\n tar -xzf Python-3.8.5.tgz\\n# Move into the Python directory\\n cd Python-3.8.5\\n# Run the configure script\\n ./configure\\n# Compile and install\\n make\\n make install\\n
      """
output:     script = f"#!/bin/bash\n# Download latest version of {version}\n curl -O https://www.python.org/ftp/python/{version.split()[-1]}/{version.replace(' ', '-')}.tgz\n# Extract the tgz file\n tar -xzf {version.replace(' ', '-')}.tgz\n# Move into the Python directory\n cd {version.replace(' ', '-')}\n# Run the configure script\n ./configure\n# Compile and install\n make\n make install\n"
      return script