input: Write a function to install a specified version of Python using a Bash script. The function should take the Python version as input and output the Bash script that performs the installation.
  assert install_python("3.8.5")=="""#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
  
  # Extract the tgz file
  tar -xzf Python-3.8.5.tgz
  
  # Move into the Python directory
  cd Python-3.8.5
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
  
  assert install_python("3.9.0")=="""#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz
  
  # Extract the tgz file
  tar -xzf Python-3.9.0.tgz
  
  # Move into the Python directory
  cd Python-3.9.0
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install"""
output: def install_python(version):
      return 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"""