input: Write a function to create a Bash script that installs a specified version of Python. The function should return the complete Bash script as a string. Given the version number as input, the script should download the corresponding Python source code, extract it, configure it, compile it, and install it on the system. The function should also handle the necessary paths and commands to ensure the correct installation of the specified Python version.
  
  def create_install_script(version):
      script = f"""#!/bin/bash
  
  # Download the specified 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
  
  assert create_install_script("3.8.5") == """#!/bin/bash
  
  # Download the specified 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"""
output: def create_install_script(version):
      script = f"""#!/bin/bash
  
  # Download the specified 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